summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2000-01-19 05:25:43 +0000
committerpjanzen <pjanzen@openbsd.org>2000-01-19 05:25:43 +0000
commitebc538cef57927426ff25a44b94d0cd4b7843b26 (patch)
treeb8468af8f8ed8bb160e279521aaa5dece9718460 /lib/libc/stdlib
parentRepair duplicate word occurences; (as found by a Perl script sent to us from (diff)
downloadwireguard-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.38
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