Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2003 00:07:01 +0000
From:      Edward Brocklesby <ejb@lythe.org.uk>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: rand() is broken
Message-ID:  <200302030007.01718.ejb@lythe.org.uk>
In-Reply-To: <3E3DB0D1.2B02CAF5@mindspring.com>
References:  <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> <3E3DB0D1.2B02CAF5@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 02 February 2003 11:59 pm, Terry Lambert wrote:
> Edward Brocklesby wrote:
> > 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.

What about them? They either,
a) link to a static libc, and use its rand() always; or
b) link to a shared libc, and use its rand(), as the binary API hasn't 
changed; or
c) if they really need their own specific RNG, they include it themselves, and 
don't rely on libc at all.

So I fail to see the problem here.

Regards,
Edward.

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?200302030007.01718.ejb>