On Wed, Mar 21, 2012 at 12:37:47PM -0500, Jeremy C. Reed wrote: > My co-worker was troubleshooting why some of our unittests (that work on > multiple operating systems and architectures) failed on OpenBSD and saw > that if you call srandom(0) to initialize the RNG, random() will always > return 0. (I was able to reproduce this.)
Nice work by your co-working for pinpointing the problem, finding how the issue was dealt with elsewhere, and proposing solutions, and then making sure word got to an appropriate list. Please pass along my thanks as an OpenBSD user. -- http://code.phxbsd.com/
