From 0423ee1769597835b9219b4b7a0e2e02e9580d1c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Jan 2001 08:32:08 +0000 Subject: (Environment Access): Adjust comment about setenv() being BSD-only. --- manual/math.texi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'manual/math.texi') diff --git a/manual/math.texi b/manual/math.texi index 9c0552d2ff..a7d6c8821b 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -1360,14 +1360,15 @@ The prototypes for these functions are in @file{stdlib.h}. @comment stdlib.h @comment BSD -@deftypefun {int32_t} random (void) +@deftypefun {long int} random (void) This function returns the next pseudo-random number in the sequence. The value returned ranges from @code{0} to @code{RAND_MAX}. -@strong{Note:} Historically this function returned a @code{long int} -value. On 64-bit systems @code{long int} would have been larger than -programs expected, so @code{random} is now defined to return exactly 32 -bits. +@strong{Note:} Temporarily this function was defined to return a +@code{int32_t} value to indicate that the return value always contains +32 bits even if @code{long int} is wider. The standard demands it +differently. Users must always be aware of the 32-bit limitation, +though. @end deftypefun @comment stdlib.h -- cgit v1.2.3