Date: Tue, 4 Feb 2003 03:24:08 -0800 (PST) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib rand.c random.c Message-ID: <200302041124.h14BO8DZ067171@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2003/02/04 03:24:08 PST Modified files: lib/libc/stdlib rand.c random.c Log: For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}() to remove part of seed -> 1st value correlation. Correlation still remains because of algorithm limits. Note that old algorithm have even stronger correlation, especially in the lower bits area, but not eye-visible, as current one. Revision Changes Path 1.13 +7 -1 src/lib/libc/stdlib/rand.c 1.22 +8 -5 src/lib/libc/stdlib/random.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302041124.h14BO8DZ067171>