On Thursday 02 April 2009, Adam GROSZER wrote:
> Yeah, uuid was my guess.

Christian was not necessarily thinking uuid. I think the common algorithm is:

x = random.randint(10**9)
while str(x) in container:
    x += 1

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to