mull has asked for the wisdom of the Perl Monks concerning the following question:
My security guy asked me a question about where my randomness came from. ( I assume he means random numbers in my scripts, not my general randomness ).
My platform does have /dev/urandom and I would hope that this would be the seed for perl's rand PRNG.
From reading perldoc -f srand I have:
uses a semi-random value supplied by the kernel (if it supports the /dev/urandom device) or based on the current time and process ID, among other things.
So now I know that I could possibly be using /dev/urandom. How can I tell if I am actually using it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What is the truth about srand()?
by merlyn (Sage) on Mar 29, 2006 at 15:45 UTC | |
Re: What is the truth about srand()?
by doc_faustroll (Scribe) on Mar 29, 2006 at 15:46 UTC | |
by merlyn (Sage) on Mar 29, 2006 at 15:51 UTC | |
by doc_faustroll (Scribe) on Mar 29, 2006 at 15:59 UTC |