boodebr A little library from boodebr.org
Module boodebr.util.guid
boodebr :
boodebr.util :
boodebr.util.guidCreation of globally unique IDs.
This is a simple module for generating unique IDs, along the same lines as a
GUID, but not matching any specific standard.
Example:
from boodebr.util import makeGUID
print "A new GUID",makeGUID('some string')
Functions
Create a new unique identifier (40-character string of
[0-9a-f]). Will be sufficiently random so you can assume it is unique.
Inputs - seed
- Used to provide extra randomness to the GUID. The GUID is NOT in any way tied to this seed.
Returns GUID (
string)
blog comments powered by