Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by Anonymous Monk
on Jul 11, 2003 at 20:08 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-12-02 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?