From owner-freebsd-arch Mon Feb 26 19:44:11 2001 Delivered-To: freebsd-arch@freebsd.org Received: from areilly.bpc-users.org (CPE-144-132-234-126.nsw.bigpond.net.au [144.132.234.126]) by hub.freebsd.org (Postfix) with SMTP id CED3E37B491 for ; Mon, 26 Feb 2001 19:44:08 -0800 (PST) (envelope-from areilly@bigpond.net.au) Received: (qmail 35159 invoked by uid 1000); 27 Feb 2001 03:44:08 -0000 From: "Andrew Reilly" Date: Tue, 27 Feb 2001 14:44:08 +1100 To: Terry Lambert Cc: Peter Pentchev , "Andrey A. Chernov" , "Jacques A. Vidrine" , arch@FreeBSD.ORG, kris@obsecurity.org Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) Message-ID: <20010227144408.A34881@gurney.reilly.home> References: <20010226174852.B435@ringworld.oblivion.bg> <200102270317.UAA09690@usr05.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102270317.UAA09690@usr05.primenet.com>; from tlambert@primenet.com on Tue, Feb 27, 2001 at 03:17:57AM +0000 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Feb 27, 2001 at 03:17:57AM +0000, Terry Lambert wrote: > I know of at least two games which depend on the random number > generator producing repeatable results in order to have maps > that are actually fully navigable. I rather doubt their vendors > will carry around their own working generators so that their > code will run on FreeBSD, if it runs on Linux without such hacks. Relying on that sort of specific behaviour of joe Unix's rand() function, and you're calling _what_ a hack? That sort of assumption is simply insane, and frankly I don't believe you for a minute. (Well, OK: never underestimate stupidity, I guess...) 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. -- Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message