]> git.ipfire.org Git - thirdparty/glibc.git/commit - stdlib/stdlib.h
random: range is not portably RAND_MAX [BZ #7003]
authorJohn Marshall <John.W.Marshall@glasgow.ac.uk>
Tue, 30 Jun 2020 18:16:03 +0000 (14:16 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Tue, 30 Jun 2020 18:20:17 +0000 (14:20 -0400)
commit354b98cdfd78fc8ca0f6ed7b0e3aa8c311f1deba
treee1f168e14981e59de0b59f6144db58d91079001d
parent3ee1e0ec5cd0441954be9181dc437358846b39c6
random: range is not portably RAND_MAX [BZ #7003]

On other platforms, RAND_MAX (which is the range of rand(3))
may differ from 2^31-1 (which is the range of random(3)).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
stdlib/stdlib.h