Table of Contents

Module: nodeid48 ./src/peak/util/nodeid48.py

Get a unique Node ID for use in generating UUIDS.

Get a unique 48 bit identifier for the current machine, suitable for use in generating UUIDS. The result of getnodeid48() is a 12 character lowercase hexadecimal string.

We use the algorithms from draft-leach-uuids-guids-01. We return an ethernet address of the host if possible, but there is no guarantee that we can do so. Do NOT assume that you will get the ethernet address. The host may not have one, or may have more than one. In fact, if the host has more than one, there is no guarantee that you will get the same one every time.

Imported modules   
import os
import re
import sys
Functions   
from_ifconfig
from_random
from_uuidgen
from_win32
getnodeid48
  from_ifconfig 
from_ifconfig ()

  from_random 
from_random ()

  from_uuidgen 
from_uuidgen ()

  from_win32 
from_win32 ()

  getnodeid48 
getnodeid48 ()


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:04 2024 by HappyDoc version 2.1