Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: Can I seed srand() with results from rand()?

by Anonymous Monk
on Jul 11, 2003 at 20:08 UTC ( [id://273554]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Can I seed srand() with results from rand()?
in thread Can I seed srand() with results from rand()?

> Some people were concerned about repeated calls to rand()

I believe the issue was srand().

> I was saying that this was not the case, as perl uses a PRNG, which given a specific input is completely deterministic.

You seem to think that deterministic steps never reduce the entropy of the system. That is not true. Perhaps you meant "reversible"? rand() is commonly reversible, but srand() can't be.

  • Comment on Re: Re: Re: Re: Can I seed srand() with results from rand()?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found