From owner-freebsd-current Sun Feb 2 13:55:43 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 3EF2D37B401; Sun, 2 Feb 2003 13:55:42 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11B5F43F3F; Sun, 2 Feb 2003 13:55:41 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Lted6068485; Mon, 3 Feb 2003 00:55:40 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12LteDn068484; Mon, 3 Feb 2003 00:55:40 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 00:55:40 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202215539.GB68356@nagual.pp.ru> References: <20030202090422.GA59750@nagual.pp.ru> <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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20030202210608.GA74910@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i 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 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 committing= .=20 > > Any objections? >=20 > What tests have you run on this code to ensure it doesn't still have > strange problems? 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. --=20 Andrey A. Chernov http://ache.pp.ru/ --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPj2T2+JgpPLZnQjrAQGbXQP/ZjsjYO8KnJvnugb6mD7VemCLxaDZTlZh GWiMHjWmXPyRloNJUbC6Pc8P7sCocG2ZxNB9hVCrG9rBC5aPAh04CXZyxgqVcd8s 9oM89HDzBFNFAjMlewGBOvfCpI8k386VBl7EFcsfe42oIEIGEEDuz1Ers8LtNnIt IPFy0Fxl8bU= =Hk/5 -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message