From owner-freebsd-arch Sun Feb 25 13:10: 8 2001 Delivered-To: freebsd-arch@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-10.dsl.lsan03.pacbell.net [63.207.60.10]) by hub.freebsd.org (Postfix) with ESMTP id D908937B4EC; Sun, 25 Feb 2001 13:10:02 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8276B66F83; Sun, 25 Feb 2001 13:10:02 -0800 (PST) Date: Sun, 25 Feb 2001 13:10:02 -0800 From: Kris Kennaway To: "Andrey A. Chernov" Cc: "Jacques A. Vidrine" , Matt Dillon , Bruce Evans , Kris Kennaway , Robert Watson , Nick Sayer , cvs-all@freebsd.org, arch@freebsd.org Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) Message-ID: <20010225131002.A38192@mollari.cthul.hu> Reply-To: arch@FreeBSD.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010225193409.A56351@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Feb 25, 2001 at 07:34:09PM +0300 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 25, 2001 at 07:34:09PM +0300, Andrey A. Chernov wrote: > On Sun, Feb 25, 2001 at 19:13:17 +0300, Andrey A. Chernov wrote: > > On Sun, Feb 25, 2001 at 18:55:36 +0300, Andrey A. Chernov wrote: > > > On Sun, Feb 25, 2001 at 09:24:16 -0600, Jacques A. Vidrine wrote: > > > > My conclusion is that either: > > > > =20 > > > > Our implementation of `rand' loses. =20 > > >=20 > > > We can easily improve much our rand() random distribution staying ins= ide > > > the same API by using just different calculation formula, as we alrea= dy do > > > with random(). I plan to do it long time ago, but lost interest. I ca= n dig > > > out this formula, if someone is interested. > >=20 > > We already use this formula (in different context), see > > good_rand() function in stdlib/random.c >=20 > Patch for review: Can't you just wrap it around random() and srandom() instead of duplicating the code? Kris --VS++wcV0S1rZb1Fb 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 iD8DBQE6mXSpWry0BWjoQKURAh9lAKC7LLf1TyVH1JDKQMhJAR/MOhi9GwCaA+G5 MAYzAKuqwsHtWZEK8PkVFmg= =y/Rx -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message