From owner-freebsd-arch Mon Feb 26 20:42:36 2001 Delivered-To: freebsd-arch@freebsd.org Received: from citusc17.usc.edu (citusc17.usc.edu [128.125.38.177]) by hub.freebsd.org (Postfix) with ESMTP id 3290837B4EC; Mon, 26 Feb 2001 20:42:33 -0800 (PST) (envelope-from kris@citusc17.usc.edu) Received: (from kris@localhost) by citusc17.usc.edu (8.11.2/8.11.2) id f1R4gPl91775; Mon, 26 Feb 2001 20:42:25 -0800 (PST) (envelope-from kris) Date: Mon, 26 Feb 2001 20:42:24 -0800 From: Kris Kennaway To: Terry Lambert Cc: "Jacques A. Vidrine" , Kris Kennaway , arch@FreeBSD.ORG Subject: Re: cvs commit: ports/astro/xglobe/files patch-random Message-ID: <20010226204224.A91585@citusc17.usc.edu> References: <20010226090108.C42108@spawn.nectar.com> <200102270310.UAA09594@usr05.primenet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102270310.UAA09594@usr05.primenet.com>; from tlambert@primenet.com on Tue, Feb 27, 2001 at 03:10:31AM +0000 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2001 at 03:10:31AM +0000, Terry Lambert wrote: > > > So if I run the same program, compiled on a Solaris box, and > > > compiled on a FreeBSD box, both linked against the platform > > > libc, I will get the same results from both machines, without > > > having to carry the random number generator code with my > > > program, over to the new platform? > >=20 > > Why do you expect this anyway? >=20 > I am a scientist. Repeatability of experiments is important. As as scientist, you naturally care about your PRNG giving good statistical randomness, so you don't get skewed results from your simulation. rand() does not appear to give statistically random output - in fact, visual inspection shows it to be patterned. As a good scientist, you did TEST the properties of your PRNG before using it as the foundation for your simulations, didn't you? By fixing the algorithm, we are preventing future generations of scientists from making the same mistake, and thereby ensuring that FreeBSD used as a research platform gives good science, not bad science. Our children and children's children will thank us! Onward, mighty FreeBSD, platform for the future!! Kris --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6mzAwWry0BWjoQKURAmgQAKC8au9K6H82h6hr5yrDiDkYAPn8EACeNB4O N6tZsLTTtDTsJkz+ZfHZhoY= =mlzi -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message