From owner-freebsd-current Sun Feb 2 15:36:28 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 CE0CC37B401 for ; Sun, 2 Feb 2003 15:36:26 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34BE543F43 for ; Sun, 2 Feb 2003 15:36:26 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id h12NaJt1038005; Sun, 2 Feb 2003 15:36:19 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id h12NZ41j038004; Sun, 2 Feb 2003 15:35:04 -0800 (PST) Date: Sun, 2 Feb 2003 15:35:04 -0800 From: "David O'Brien" To: Mark Murray Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202233504.GA33924@dragon.nuxi.com> Reply-To: current@FreeBSD.ORG Mail-Followup-To: David O'Brien , Mark Murray , Bakul Shah , current@FreeBSD.ORG References: <200302022057.PAA26422@tonnant.cnchost.com> <200302022123.h12LNhaX051805@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022123.h12LNhaX051805@grimreaper.grondar.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 [From address modified because I don't want every message in this thread to end up in my personal mailbox. I'll read them in the list, thank you very much.] On Sun, Feb 02, 2003 at 09:23:43PM +0000, Mark Murray wrote: > Bakul Shah writes: > > > Since you keep talking about random(), I must conclude you're > > > knee-jerking, since we're not discussing that function. Please stay > > > on-topic :-) > > > > Read through the thread. In particular see Mark's message > > <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he > > says > > > > Good point. We can re-implement random() internally with arc4rand(). > > Quote it in context, please. > > That was random(9). KERNEL random(). > > However, the argument applies equally well to rand(3) and random(3). Please Mark, just leave rand(3) and random(3) alone -- other than to fix the single bug Kris reported at the start of this thread. Long-time Unix users expect them to work as they do now. The manpages state they are not cryptographically random. If someone wants a function of that type we have a good arc4random(3). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message