From owner-freebsd-arch Mon Feb 26 20: 4:53 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id 1EE6A37B491 for ; Mon, 26 Feb 2001 20:04:50 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id UAA26854; Mon, 26 Feb 2001 20:59:37 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp05.primenet.com, id smtpdAAAOgaqx0; Mon Feb 26 20:59:29 2001 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id VAA11459; Mon, 26 Feb 2001 21:04:34 -0700 (MST) From: Terry Lambert Message-Id: <200102270404.VAA11459@usr05.primenet.com> Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) To: areilly@bigpond.net.au (Andrew Reilly) Date: Tue, 27 Feb 2001 04:04:34 +0000 (GMT) Cc: tlambert@primenet.com (Terry Lambert), roam@orbitel.bg (Peter Pentchev), ache@nagual.pp.ru (Andrey A. Chernov), n@nectar.com (Jacques A. Vidrine), arch@FreeBSD.ORG, kris@obsecurity.org In-Reply-To: <20010227144408.A34881@gurney.reilly.home> from "Andrew Reilly" at Feb 27, 2001 02:44:08 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Sure, rand() should produce the same results after successive > calls to srand() with the same seed: that's what the spec says. > Nothing anywhere has ever said that these _sequences_ should be > portable between machines. Historically, they have been, whether or not someone has said they should be is not relevent, since they have been derived from common source code. I remember when the standard rand() went into the FreeBSD source base; almost immediately thereafter, I added patches to the f2c math library, and began using FreeBSD as a science platform. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message