How to make a GUID with plain python

Darren New dnew at san.rr.com
Wed Dec 20 18:57:14 EST 2000


> A plain python algorithm itself would be very useful, since one could
> use it for RPC / COM as well as for creating indexes for distributed
> databases.

Well, concatenating one of the IP addresses assigned to the machine to the
clock would give you something that should be globally unique, if you had an
IP address that wasn't unroutable. Generate a random number to tack on the
end, and you're set?

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.
Personal malapropism generator free with purchase!
Steganography: The manual is hidden in the source code.
Gold mining is only profitable because of the gold found.



More information about the Python-list mailing list