From owner-freebsd-current Tue Feb 4 8:39:35 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 BCC5537B401 for ; Tue, 4 Feb 2003 08:39:33 -0800 (PST) Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A2BD43F75 for ; Tue, 4 Feb 2003 08:39:26 -0800 (PST) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx35.rz.uni-wuerzburg.de (8.8.8/8.8.8/uniwue-MM-1.05) with ESMTP id RAA455069 for ; Tue, 4 Feb 2003 17:39:25 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id A192F66A5C for ; Tue, 4 Feb 2003 17:39:24 +0100 (CET) Received: from wrzx07.rz.uni-wuerzburg.de ([132.187.1.7]) by virusscan (wrzx34 [132.187.3.34:25]) (amavisd-new) with ESMTP id 18769-06 for ; Tue, 4 Feb 2003 17:39:24 +0100 (CET) Received: from spamchecker (localhost [127.0.0.1]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id C93B2466A for ; Tue, 4 Feb 2003 17:39:23 +0100 (CET) Received: from coyote.dnsalias.net (gb-007.galgenberg.net [132.187.222.7]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id 945D14666 for ; Tue, 4 Feb 2003 17:39:23 +0100 (CET) Received: from roadrunner.local (roadrunner [192.168.0.147]) by coyote.dnsalias.net (8.12.6/8.12.6) with ESMTP id h14GdKsg038743 for ; Tue, 4 Feb 2003 17:39:21 +0100 (CET) (envelope-from q@uni.de) Received: from roadrunner.local (localhost [127.0.0.1]) by roadrunner.local (8.12.6/8.12.6) with ESMTP id h14GdJPt011962 for ; Tue, 4 Feb 2003 17:39:19 +0100 (CET) (envelope-from q@uni.de) Received: (from q@localhost) by roadrunner.local (8.12.6/8.12.6/Submit) id h14GdIDm011961 for current@freebsd.org; Tue, 4 Feb 2003 17:39:18 +0100 (CET) (envelope-from q@uni.de) X-Authentication-Warning: roadrunner.local: q set sender to q@uni.de using -f Date: Tue, 4 Feb 2003 17:39:18 +0100 From: Ulrich Spoerlein To: current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030204163918.GB11543@galgenberg.net> References: <200302022006.PAA25355@valiant.cnchost.com> <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.4i X-No-Archive: yes X-Spam-Status: No, hits=-13.8 required=8.0 tests=IN_REP_TO,LOCAL_CLIENT,NICE_HELO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT,WEIRD_SUBJ_LETTER,X_AUTH_WARNING version=2.43-string_20021002 X-Spam-Level: X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) 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 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, 02.02.2003 at 13:23:38 -0800, Doug Barton wrote: > I can think of one significant benefit... I had noticed that my perl > script to pick random windowmaker themes (which uses rand()) seemed to be > picking the same themes over and over again. Now I know why. :) I had to > create a "last seen" list to artificially increase the "randomness." Oh > wait, TWO benefits... xscreensaver is having the same problem. Well, I don't know for sure if XMMS uses rand/random, but I can tell you for sure that it's randomness _sucks_. It keeps playing the same songs from a Playlist again and again and again. Not very useful... --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+P+y2mArGtfDbn0QRAg3AAJ9GKhIh66OGgIHtOH3fjJaTaeQsZgCg5bLk cQgmk1AfQ5/lt0tUCVDfDqM= =V1VV -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message