From owner-cvs-all Sun Feb 25 7:24:28 2001 Delivered-To: cvs-all@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id C300737B401; Sun, 25 Feb 2001 07:24:17 -0800 (PST) (envelope-from nectar@nectar.com) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id A20EE18C91; Sun, 25 Feb 2001 09:24:16 -0600 (CST) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.2/8.9.3) id f1PFOG846996; Sun, 25 Feb 2001 09:24:16 -0600 (CST) (envelope-from nectar@spawn.nectar.com) Date: Sun, 25 Feb 2001 09:24:16 -0600 From: "Jacques A. Vidrine" To: Matt Dillon Cc: Bruce Evans , Kris Kennaway , Robert Watson , Nick Sayer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: ports/astro/xglobe/files patch-random Message-ID: <20010225092416.A46959@hamlet.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , Matt Dillon , Bruce Evans , Kris Kennaway , Robert Watson , Nick Sayer , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200102250900.f1P90Qc12868@earth.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102250900.f1P90Qc12868@earth.backplane.com>; from dillon@earth.backplane.com on Sun, Feb 25, 2001 at 01:00:26AM -0800 X-Url: http://www.nectar.com/ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 25, 2001 at 01:00:26AM -0800, Matt Dillon wrote: > It's only security and cryptography where rand() really breaks down. This is simply not true in my experience. I fixed two ports in the recent past that were using rand/srand, because: Case 1: A game's sound-effects that were essentially white-noise (e.g. explosions) sounded silly. Using random/srandom made it sound much better. Case 2: XMMS used rand/srand to shuffle the playlist. I have a 4000+ item playlist, and the shuffle was noticeably not very random. Changing XMMS to use random/srandom fixed this. My conclusion is that either: Our implementation of `rand' loses. OR `rand' has inherent limitations that make it unsuitable for most applications. Cheers, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message