mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Merge r203393,r203395 from head:
The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d. This bug in the man page has gone unnoticed for over 15 years! PR: docs/143461 Submitted by: Jeremy Huddleston jeremyhu apple.com
This commit is contained in:
parent
f2176d8ce1
commit
d69d02b9a4
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
|||
.\" @(#)rand48.3 V1.0 MB 8 Oct 1993
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd October 8, 1993
|
||||
.Dd February 2, 2010
|
||||
.Dt RAND48 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -57,7 +57,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 modulo is always fixed at m = 2 ** 48.
|
||||
r(n) is called the seed of the random number generator.
|
||||
|
|
|
|||
Loading…
Reference in a new issue