Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Generate a unique ID

by BrowserUk (Pope)
on Nov 17, 2010 at 15:37 UTC ( #872006=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Generate a unique ID
in thread Generate a unique ID

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.


Comment on Re^6: Generate a unique ID

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-07-04 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls