Generating Unique Keys

Peter Hansen peter at engcorp.com
Sat Jan 25 14:35:11 EST 2003


Mongryong wrote:
> 
> Right now, I mainly need a way to generate unique (web) session keys.
> However, it would be nice to have a general purpose function for
> generating unique keys.

I may be missing something, but what would be wrong with incrementing
a variable, starting at "1"?

You haven't specified a requirement which looks like it would
eliminate this as a possibility.

-Peter




More information about the Python-list mailing list