We don't bite newbies here... much | |
PerlMonks |
Re^3: Crypt::Random::ISAAC - secure random number generatorby nothingmuch (Priest) |
on Jul 11, 2005 at 17:03 UTC ( [id://474018]=note: print w/replies, xml ) | Need Help?? |
if (-e "/dev/random"){ .... } else { .... }
To generate a nice seed where you don't have /dev/random, you can do a checksum on your environment. Here are some sources of bits that are not random, but hard to reproduce:
/dev/random collects entropy from drivers, timers, and so forth, so essentially you're doing a cheap emulation of that. If you get something nice, make a module out of it: Entropy::Gather::Win32 or something.
-nuffin zz zZ Z Z #!perl
In Section
Code Catacombs
|
|