From owner-freebsd-arch Sun Feb 25 15:39:26 2001 Delivered-To: freebsd-arch@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id DBF0737B503; Sun, 25 Feb 2001 15:39:21 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f1PNdGF18914; Sun, 25 Feb 2001 15:39:16 -0800 (PST) (envelope-from dillon) Date: Sun, 25 Feb 2001 15:39:16 -0800 (PST) From: Matt Dillon Message-Id: <200102252339.f1PNdGF18914@earth.backplane.com> To: "Andrey A. Chernov" Cc: Kris Kennaway , arch@FreeBSD.ORG, "Jacques A. Vidrine" , Bruce Evans , Robert Watson , Nick Sayer , cvs-all@FreeBSD.ORG Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) References: <200102250900.f1P90Qc12868@earth.backplane.com> <20010225092416.A46959@hamlet.nectar.com> <20010225185535.A55782@nagual.pp.ru> <20010225191316.A56093@nagual.pp.ru> <20010225193409.A56351@nagual.pp.ru> <20010225131002.A38192@mollari.cthul.hu> <20010225132152.A39554@mollari.cthul.hu> <20010226005004.B59772@nagual.pp.ru> <20010225135429.A47615@mollari.cthul.hu> <20010226020827.A61007@nagual.pp.ru> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Bad news: we can't implement r_rand() via random() algorithm because :r_rand() keeps its state in extenal unsigned variable (not in big table :needed for random()). So, I suggest again to use my patch since it _is_ :r_rand() compatible. : :--=20 :Andrey A. Chernov Ach, your right. The best we can hope for with rand() is to have it produce a reasonable pseudo-random sequence. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message