Date: Sun, 02 Feb 2003 15:14:53 -0800 From: Bakul Shah <bakul@bitblocks.com> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: Mark Murray <mark@grondar.org>, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <200302022314.SAA14785@illustrious.cnchost.com> In-Reply-To: Your message of "Sun, 02 Feb 2003 14:37:25 PST." <20030202223725.GA72744@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302022314.SAA14785>