From owner-freebsd-hackers Mon Oct 7 11:20:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA15604 for hackers-outgoing; Mon, 7 Oct 1996 11:20:12 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA15598 for ; Mon, 7 Oct 1996 11:20:10 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA14477; Mon, 7 Oct 1996 11:16:25 -0700 From: Terry Lambert Message-Id: <199610071816.LAA14477@phaeton.artisoft.com> Subject: Re: I plan to change random() for -current (was Re: rand() and random()) To: j@uriah.heep.sax.de (J Wunsch) Date: Mon, 7 Oct 1996 11:16:25 -0700 (MST) Cc: freebsd-hackers@freebsd.org In-Reply-To: <199610071752.TAA15133@uriah.heep.sax.de> from "J Wunsch" at Oct 7, 96 07:52:33 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The requirements for rand() are being set straight in the ANSI and ISO > documents. There are no implementation details, and i don't see why > we are obligued to keep a buggy implementation just since some people > on the earth might be used to this one. > > If some particular package relies on the pseudo-unrandomness of a > particular implementation, they should ship this particular > implementation along with their sources (and give it a name that > doesn't clash with the standard). There's nothing more they could > expect from a standard-conforming implementation than to conform to > the standard. 1) Please *strongly* document this change. 2) Please provide a library "orand" function in libcompat and mention in the documentation; feel free to remove the orand (or replace it) in the next release. If you do this, then I will be happy (or at least grudgingly nonopposed). I would prefer that old code linked against a difference version of libc kick out a printf when they call the changed random, since this is a possibly high impact version mismatch. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.