boodebr A little library from boodebr.org


files/feed-icon-14x14.png Recently Edited
boodebr.util.guid edit
frank, 03 August 2008 (created 19 February 2008)
Tags: guid util
Module boodebr.util.guid
boodebr : boodebr.util : boodebr.util.guid

Creation 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
makeGUID(seed='')
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 Disqus