On Sunday 02 February 2003 6:48 pm, Bakul Shah wrote:
> Guys, please realize that random() is also used in generating
> simulation inputs (or timing or whatever).  If you go change
> the underlying algorithm or its parameters one can't generate
> the same sequence from the same seed when repeating a test.

Maybe I missed something, but why cannot you just rip random() from libc, 
rename it to bakul_shah_random() and use that in your testing code?  Then you 
are safe from any changes to random(), and indeed have a portable RNG if your 
host OS changes.

Regards,
Edward.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to