Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/lib/libc/stdlib Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/a2947e822ba3
branches: netbsd-3
changeset: 577997:a2947e822ba3
user: ghen <ghen%NetBSD.org@localhost>
date: Mon Apr 24 20:28:53 2006 +0000
description:
Pull up following revision(s) (requested by drochner in ticket #1286):
lib/libc/stdlib/rand48.3: revision 1.11
correct multiplicand in pseudorandom generation
diffstat:
lib/libc/stdlib/rand48.3 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r eb2c5816d3cf -r a2947e822ba3 lib/libc/stdlib/rand48.3
--- a/lib/libc/stdlib/rand48.3 Sun Apr 23 23:07:54 2006 +0000
+++ b/lib/libc/stdlib/rand48.3 Mon Apr 24 20:28:53 2006 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: rand48.3,v 1.10 2003/05/10 12:24:54 wiz Exp $
+.\" $NetBSD: rand48.3,v 1.10.6.1 2006/04/24 20:28:53 ghen Exp $
.\"
.\" Copyright (c) 1993 Martin Birgmeier
.\" All rights reserved.
@@ -55,7 +55,7 @@
The particular formula employed is
r(n+1) = (a * r(n) + c) mod m
where the default values are
-for the multiplicand a = 0xfdeece66d = 25214903917 and
+for the multiplicand a = 0x5deece66d = 25214903917 and
the addend c = 0xb = 11.
The modulus is always fixed at m = 2 ** 48.
r(n) is called the seed of the random number generator.
Home |
Main Index |
Thread Index |
Old Index