From owner-freebsd-current Sun Feb 2 4:39: 8 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 1A5FF37B401 for ; Sun, 2 Feb 2003 04:38:55 -0800 (PST) Received: from 12-234-22-23.client.attbi.com (12-234-22-23.client.attbi.com [12.234.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F93343E4A for ; Sun, 2 Feb 2003 04:38:55 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from slave.gorean.org (3i76awr1gjziv1os@slave.gorean.org [10.0.0.1]) by 12-234-22-23.client.attbi.com (8.12.6/8.12.6) with ESMTP id h12CcrfS079238; Sun, 2 Feb 2003 04:38:54 -0800 (PST) (envelope-from DougB@FreeBSD.org) Date: Sun, 2 Feb 2003 04:38:53 -0800 (PST) From: Doug Barton To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken In-Reply-To: <20030202123035.GB62977@nagual.pp.ru> Message-ID: <20030202043722.E77226@12-234-22-23.pyvrag.nggov.pbz> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sun, 2 Feb 2003, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 13:26:21 +0300, Andrey A. Chernov wrote: > > > Workaround I find so far is something like that > > > > #define MASK 123459876 > > I found nothing better. Here is fix for 0 problem I plan to commit: I think it's worthwhile to wait till we get a chance to try arc4random(). Also, have you run the code you're proposing through the tests in the post that David Schultz just made? Before leaping ahead with another band-aid it would be nice to give this some serious thought. Doug -- If it's moving, encrypt it. If it's not moving, encrypt it till it moves, then encrypt it some more. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message