seed for random number generator with parallel computation

Chris McDonald chris at csse.uwa.edu.au
Thu Apr 23 05:38:34 EDT 2009


Eric Wajnberg <wajnberg at sophia.inra.fr> writes:

>Can someone tell me what is the usual policy used in this case to start 
>the random number generator with random seeds, that are different from 
>one run to the other? Are you simply using the pid of the process each 
>time to initiate the random number generator?

There's not many different pids available, some Unix systems will give you
only 30,000 of them.
If your system provides the pseudo-device /dev/random, you may like to
investigate it:

  man 4 random

-- 
Chris,



More information about the comp-simulation mailing list