Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Poor randomness with File::Temp and fork().

by DrHyde (Prior)
on Jun 28, 2004 at 10:04 UTC ( [id://370162]=note: print w/replies, xml ) Need Help??


in reply to Re: Poor randomness with File::Temp and fork().
in thread Poor randomness with File::Temp and fork().

I would suggest having the fork()ed children read some data from /dev/random or /dev/urandom and using that, rather than giving them all their own copy of the pRNG in the same state and so producing the same data. Alternatively, <advert>Net::Random</advert>
  • Comment on Re^2: Poor randomness with File::Temp and fork().

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found