From owner-freebsd-current Sun Feb 2 7:36:59 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 CCD5F37B405; Sun, 2 Feb 2003 07:36:58 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8680F43F79; Sun, 2 Feb 2003 07:36:57 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12FauLf076939; Sun, 2 Feb 2003 15:36:56 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12Faum9076938; Sun, 2 Feb 2003 15:36:56 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12FWWaX047973; Sun, 2 Feb 2003 17:32:32 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021532.h12FWWaX047973@grimreaper.grondar.org> To: "Jeroen C. van Gelderen" Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 14:26:41 +0100." Date: Sun, 02 Feb 2003 15:32:32 +0000 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 "Jeroen C. van Gelderen" writes: > Wouldn't it be a good idea to change the name at the same time? Or > should it be retained for compatibility reasons with other BSDs? > > Currently the name needlessly exposes implementation detail. Callers > expect good, cheap, non-blocking randomness but don't give a hoot if > that is actually provided trough use of RC4 or not. I see no reason why > the implementation could be changed if the contract is maintained. Good point. We can re-implement random() internally with arc4rand(). Objections? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message