Subject: CVS commit: src/lib/libc/stdlib
To: None <>
From: Jaromir Dolecek <>
List: source-changes
Date: 11/26/2003 20:44:41
Module Name:	src
Committed By:	jdolecek
Date:		Wed Nov 26 20:44:41 UTC 2003

Modified Files:
	src/lib/libc/stdlib: random.c

Log Message:
improve random number generation by using largest 31-bit prime
as denominator; regenerate the randtbl[] with new generator

patch provided in lib/22853 by KIHARA Hideto; code actually present
in libkern/random.c since 1994/06/03

matches similar change done in glibc in 1995, and FreeBSD & OpenBSD in 1996

To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 src/lib/libc/stdlib/random.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.