Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: 64 bit random numbers

by atl (Pilgrim)
on Oct 30, 2000 at 20:14 UTC ( [id://39105]=note: print w/replies, xml ) Need Help??


in reply to 64 bit random numbers

Howdy!

Digsy asked:
Couldnt I just create 64 random numbers and put them together ?

Depends on what you need the random numbers for. Just shuffling the songs for your tremendous mp3 collection? Your suggestion might do fine then (albeit slow), almost anything will. If it's for security purposes (read: encryption and so on), you need the real thing. I think the suggested Math:: and Crypt:: modules will be right (didn't check the docs, though).

Also, getting a good noise source to seed your random number generator is kind of tricky and OS dependent, if I remember a talk about GPG correctly. (GNU Privacy Guard, an open (who'd thought that!?) PGP replacement).

Have fun ...

Andreas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found