diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-27 08:32:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-27 08:32:08 +0000 |
commit | 0423ee1769597835b9219b4b7a0e2e02e9580d1c (patch) | |
tree | 365fde2bcfbe72405e861d856c0a4c0eda0baffe /manual/math.texi | |
parent | 344be96af46b4e8cc79d942db00ae105929a43c2 (diff) | |
download | glibc-0423ee1769597835b9219b4b7a0e2e02e9580d1c.zip glibc-0423ee1769597835b9219b4b7a0e2e02e9580d1c.tar.gz glibc-0423ee1769597835b9219b4b7a0e2e02e9580d1c.tar.bz2 |
(Environment Access): Adjust comment about setenv() being BSD-only.
Diffstat (limited to 'manual/math.texi')
-rw-r--r-- | manual/math.texi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/manual/math.texi b/manual/math.texi index 9c0552d..a7d6c88 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 |