From owner-freebsd-current Sun Feb 2 14:21:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A763B37B408; Sun, 2 Feb 2003 14:21:10 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6438643FA7; Sun, 2 Feb 2003 14:21:09 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id A923867C6F; Sun, 2 Feb 2003 14:21:02 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 38670E41; Sun, 2 Feb 2003 14:21:02 -0800 (PST) Date: Sun, 2 Feb 2003 14:21:02 -0800 From: Kris Kennaway To: "Andrey A. Chernov" Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202222101.GA75656@rot13.obsecurity.org> References: <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> <20030202210608.GA74910@rot13.obsecurity.org> <20030202215539.GB68356@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20030202215539.GB68356@nagual.pp.ru> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 12:55:40AM +0300, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 13:06:08 -0800, Kris Kennaway wrote: > > On Sun, Feb 02, 2003 at 06:10:49PM +0300, Andrey A. Chernov wrote: > > > So far, this is final variant for 0 problem fixing ready for committi= ng.=20 > > > Any objections? > >=20 > > What tests have you run on this code to ensure it doesn't still have > > strange problems? >=20 > Uhm, I don't understand you well here. Any code can have strange problems, > nobody can be sure. Lets concentrate to this particular problem which I > call 0 problem. 0 seed is illegal by algorithm desing and BSD developers > try to made workaround, but their attempt was unsuccessful with result you > describe. Now successfull attempt comes. It not add any new bugs, because > value 0 simple mapped to another value (which could be any, but I choose > to not touch lower ones), which make generator non-stick at 0 again. If I understand correctly, this still doesn't solve the problem, because any PRNG sequence that hits the "magic" value will still get stuck there forever. Kris --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PZnMWry0BWjoQKURAgHnAKC8WnxkEyKTjYtnoI9jUKfaPru9SgCg9KsY AfgIjxBsFYYuh0S8HvJo5Po= =gwbT -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message