diff options
author | 2000-01-19 05:25:43 +0000 | |
---|---|---|
committer | 2000-01-19 05:25:43 +0000 | |
commit | ebc538cef57927426ff25a44b94d0cd4b7843b26 (patch) | |
tree | b8468af8f8ed8bb160e279521aaa5dece9718460 /lib/libc/stdlib | |
parent | Repair duplicate word occurences; (as found by a Perl script sent to us from (diff) | |
download | wireguard-openbsd-ebc538cef57927426ff25a44b94d0cd4b7843b26.tar.xz wireguard-openbsd-ebc538cef57927426ff25a44b94d0cd4b7843b26.zip |
Max value returned is 2^31 - 1, regardless of the arch-dependent LONG_MAX.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/random.3 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index 7b8a566115a..9558a672eb6 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: random.3,v 1.9 1999/07/04 18:59:43 aaron Exp $ +.\" $OpenBSD: random.3,v 1.10 2000/01/19 05:25:43 pjanzen Exp $ .\" .Dd April 19, 1991 .Dt RANDOM 3 @@ -57,12 +57,6 @@ function uses a non-linear additive feedback random number generator employing a default table of size 31 long integers to return successive pseudo-random numbers in the range from 0 to (2**31)\-1. -The maximum value returned by -.Fn random -is -.Dv LONG_MAX -(as defined by the header file -.Aq Pa limits.h ) . The period of this random number generator is very large, approximately 16*((2**31)\-1. .Pp |