Generating Unique Keys

Peter Hansen peter at
Sat Jan 25 20:35:11 CET 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.


More information about the Python-list mailing list