Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Parallel Random Numbers in Matlab (walkingrandomly.com)
20 points by ColinWright on Dec 20, 2011 | hide | past | favorite | 3 comments


You can use the function RAND_bytes from the OpenSSL library to get cryptographically strong random numbers ( http://www.openssl.org/docs/crypto/RAND_bytes.html# ). I think that it is good enough to get a "different" seed for each instance, but I think that it does not solve the birthday paradox.


Just a thought...why can't you generate the initial seed using the system time and then use that to generate random numbers? Won't this be random enough?


hmm...this idea seems to have been brought up in a comment as well http://www.walkingrandomly.com/?p=2755#comment-31646




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: