Keep It Simple, Stupid | |
PerlMonks |
Re^2: Random Number Generatorby hardburn (Abbot) |
on Aug 20, 2013 at 18:24 UTC ( [id://1050220]=note: print w/replies, xml ) | Need Help?? |
I was actually researching this issue recently. It turns out that by default, Perl calls srand() with /dev/random (or an equivalent on your platform). Timestamps aren't involved. See util.c and search for Perl_seed. "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In Section
Meditations
|
|