Date: Tue, 1 May 2001 10:43:24 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Jason Smethers <jason@smethers.net> Cc: chat@FreeBSD.ORG Subject: Re: BSD libc for Linux? Message-ID: <20010501104324.D7834@xor.obsecurity.org> In-Reply-To: <002c01c0d25d$10af76a0$08cc1f40@pdq.net>; from jason@smethers.net on Tue, May 01, 2001 at 11:37:51AM -0500 References: <20010430172143.A9910@Odin.AC.HMC.Edu> <p05001909b7143ae910ea@[192.168.168.205]> <002c01c0d25d$10af76a0$08cc1f40@pdq.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--BRE3mIcgqKzpedwo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 01, 2001 at 11:37:51AM -0500, Jason Smethers wrote: > > At 5:21 PM -0700 4/30/01, Brooks Davis wrote: > > >For lack of any where better to ask, I'll try chat. Does any one know > > >of a working port of a BSD libc for a modern Linux (RedHat 6.x, SuSE 6= .y, > > >etc.) I ask because I've got some scientific code that's more or less > > >pure ANSI C that works just fine producing the same or nearly the same > > >results on FreeBSD, Solaris, Irix, and even Alpha Linux, but on i386 > > >Linux it produces wildly different (though consistant) results. I'm > > >hoping for an easy to way to figure out it it's the kernel or glibc. >=20 > The statistical differences may be a result of your programs use of the > rand() family. Linux's GNU libc decided not to implement these functions = for > backwards compatibility. Instead it aliases these functions to the random= () > family. =2E.which is a legitimate thing to do according to the standards. FreeBSD fixed its rand() in -current too; anyone using the old version for simulations is likely to be getting sorely skewed data out because the algorithm is so non-random. Kris --BRE3mIcgqKzpedwo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE67vW7Wry0BWjoQKURAugVAJ9j1gVVBaw0sRVDmKHnHVm6+8CJJwCeJR3u Eua20Nn3xU7BRhR5nAOF1N4= =NyON -----END PGP SIGNATURE----- --BRE3mIcgqKzpedwo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010501104324.D7834>