From owner-freebsd-current Sun Feb 2 16: 7: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C9D637B401 for ; Sun, 2 Feb 2003 16:07:05 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1737B43F75 for ; Sun, 2 Feb 2003 16:07:04 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h130721a005733; Mon, 3 Feb 2003 00:07:02 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: from localhost (localhost [[UNIX: localhost]]) by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h13071W5005732; Mon, 3 Feb 2003 00:07:01 GMT (envelope-from ejb) From: Edward Brocklesby To: Terry Lambert Subject: Re: rand() is broken Date: Mon, 3 Feb 2003 00:07:01 +0000 User-Agent: KMail/1.5 Cc: current@FreeBSD.ORG References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> <3E3DB0D1.2B02CAF5@mindspring.com> In-Reply-To: <3E3DB0D1.2B02CAF5@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302030007.01718.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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