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.
|