From owner-freebsd-current Sun Feb 2 15:15: 3 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 E8DF537B401 for ; Sun, 2 Feb 2003 15:15:01 -0800 (PST) Received: from illustrious.cnchost.com (illustrious.concentric.net [207.155.252.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9479E43F43 for ; Sun, 2 Feb 2003 15:15:01 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by illustrious.cnchost.com id SAA14785; Sun, 2 Feb 2003 18:14:53 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022314.SAA14785@illustrious.cnchost.com> To: Steve Kargl Cc: Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 14:37:25 PST." <20030202223725.GA72744@troutmask.apl.washington.edu> Date: Sun, 02 Feb 2003 15:14:53 -0800 From: Bakul Shah 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 > Last 10 digits. > > FreeBSD Redhat SunOS > 660787754 660787754 645318364 > 327548691 327548691 1583150371 > 2009993994 2009993994 715222008 > 1653966416 1653966416 1349166998 > 1074113008 1074113008 566227131 > 2142626740 2142626740 1382825076 > 1517775852 1517775852 583981903 > 1453318125 1453318125 1453942393 > 619607807 619607807 1952958724 > 199986393 199986393 1599163286 Interesting.... The SunOS output exactly matches random(3) behavior from 4.3BSD! In fact random() remained the same for 4.3BSD-Reno, -Tahoe, 4.4BSD-Alpha and Net2. 4.2BSD random() behavior is different from all of the above. There was real bug-fix between 4.2BSD and 4.3BSD. I don't know when the FreeBSD/Redhat change was made or if it broke any statistical properties. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message