I did mention the reason. MS' CRT rand() function uses 15-bits only.
This also affects Perl directly because the perl's rand is implemented in terms of the crt function.
I'd normally use Math::Random::MT for anything where I need a descent random, but the standard implementation (and therefore the Perl module) is not threadsafe due to some static internal buffers.
In reply to Re^6: Generate a unique ID
by BrowserUk
in thread Generate a unique ID
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |