]> git.ipfire.org Git - thirdparty/man-pages.git/commit
random.3: Change "RAND_MAX" tp "2^31-1"
authorJohn Marshall <John.W.Marshall@glasgow.ac.uk>
Mon, 8 Jun 2020 11:04:16 +0000 (12:04 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 8 Jun 2020 21:09:36 +0000 (23:09 +0200)
commit2de361c8e95c4049723d973708225935d7307cbb
treefc6f1dbf7aa6d017cca02871a7cbcb6fbf6d40c8
parente9898cc8bacb150143ba1c69024969dee9b712be
random.3: Change "RAND_MAX" tp "2^31-1"

RAND_MAX is for rand(3).  POSIX fixes random()'s range at 2^31-1;
RAND_MAX may be smaller on some platforms (even though with glibc
or musl on Linux they are the same).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/random.3