Generating unique numbers?

Irmen de Jong irmen at NOSPAMREMOVETHISxs4all.nl
Sat Jun 1 13:36:42 EDT 2002


> Based on what people have said, I was thinking of using some 
> combination of DateTime.gmticks and the id of the obj, 
> making it (I think) extremely unlikely that there would be a 
> collision.


You might want to take a look at my GUID generator that is 
part of Pyro. It is used to generate object IDs to identify objects
within a distributed system. See http://www.sourceforge.net/projects/pyro

If you do download it, it can be found in Pyro/util.py

Irmen




More information about the Python-list mailing list