"be consistent" | |
PerlMonks |
RE: RE: Randomizing Unique ID?by tye (Sage) |
on Aug 09, 2000 at 21:54 UTC ( [id://27123]=note: print w/replies, xml ) | Need Help?? |
Note that this is barely adequate since a "typical" double has 53 bits of mantissa (not counting the sign bit) which can handle just under 16 decimal digits while time() currently returns 9 digits but will soon return 10, while $$ is typically no more than 5 digits (total will soon be 15 digits). Doing the conversion to base-62 in two steps would give you lots of room (and different results). - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|