in reply to Re: Use time() to create unique ID
in thread Use time() to create unique ID
If you don't want to use the unique user id module, perhaps you could use a combination of: Process ID, Time, and an in-loop counter. If you want to rely on rand, don't call the ID "unique". Call it "rare". Just because something is improbable doesn't mean it's unique. And why settle for scarcity in a situation where you require uniqueness, when it is truly not that difficult to develop a solution that provides what is actually needed?
Dave
"If I had my life to do over again, I'd be a plumber." -- Albert Einstein
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Randomness (was Re: Re: Re: Use time() to create unique ID)
by blue_cowdawg (Monsignor) on Sep 16, 2003 at 17:57 UTC | |
by sauoq (Abbot) on Sep 16, 2003 at 23:07 UTC | |
by blue_cowdawg (Monsignor) on Sep 17, 2003 at 00:24 UTC | |
by sauoq (Abbot) on Sep 23, 2003 at 18:47 UTC |