Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Feb 2003 15:59:13 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Edward Brocklesby <ejb@lythe.org.uk>
Cc:        Bakul Shah <bakul@bitblocks.com>, current@FreeBSD.ORG
Subject:   Re: rand() is broken
Message-ID:  <3E3DB0D1.2B02CAF5@mindspring.com>
References:  <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Edward Brocklesby wrote:
> 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.

Binary packages from third party software vendors.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E3DB0D1.2B02CAF5>