in reply to Re: Need to Generate Unique String
in thread Need to Generate Unique String
You can get guaranteed uniqueness by replacing the rand call with a "hold this pid until the time changes":
$unique = time() . $$; sleep 1;
Hugo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need to Generate Unique String
by BrowserUk (Patriarch) on Jul 29, 2004 at 21:08 UTC | |
by hv (Prior) on Jul 30, 2004 at 12:13 UTC | |
|
Re^3: Need to Generate Unique String
by ccn (Vicar) on Jul 29, 2004 at 20:04 UTC |