From owner-cvs-all Tue Feb 4 3:24:10 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25BAD37B401; Tue, 4 Feb 2003 03:24:09 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC34E43F93; Tue, 4 Feb 2003 03:24:08 -0800 (PST) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h14BO8bv067172; Tue, 4 Feb 2003 03:24:08 -0800 (PST) (envelope-from ache@repoman.freebsd.org) Received: (from ache@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h14BO8DZ067171; Tue, 4 Feb 2003 03:24:08 -0800 (PST) Message-Id: <200302041124.h14BO8DZ067171@repoman.freebsd.org> From: "Andrey A. Chernov" Date: Tue, 4 Feb 2003 03:24:08 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib rand.c random.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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