Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: how to get a 64bit random number with rand() ?

by Anonymous Monk
on Mar 23, 2018 at 15:38 UTC ( [id://1211614]=note: print w/replies, xml ) Need Help??


in reply to Re^3: how to get a 64bit random number with rand() ?
in thread how to get a 64bit random number with rand() ?

Read that as "add thirty-two 32-bit rands()"
You sure about that?

The issue of entropy distilling is a concern for random number generators. Various sources of randomness are mixed into the pool and typically some one-way hashing applied on the output.

Unless if you're trying to write a PRNG yourself, you don't want to mix anything. The generator is essentially a stream (and implementing such via IO layers is actually very simple.) From a stream, one just consumes characters.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found