]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
I was confused a bit by the wrong construction with RAND_MAX
authorache <ache@FreeBSD.org>
Fri, 8 Aug 2008 01:42:17 +0000 (01:42 +0000)
committerache <ache@FreeBSD.org>
Fri, 8 Aug 2008 01:42:17 +0000 (01:42 +0000)
commit823689b09c9db6b0a03a78837e4c02b453e37d8d
tree8f6ee5f63b889dc3ddd277538eb981661d977ec6
parentc14ceb129d096f937348a276508fee6f9493f9ae
I was confused a bit by the wrong construction with RAND_MAX
used in randomize_fd.c.
Although the max value is the same currently, RAND_MAX is for rand(),
not for random().
So move RANDOM_MAX const to the common file now, make it UL and
use in randomize_fd.c too.
(in any case its old value was 1 less then must be, as noted in
the prev. commit)
games/random/random.c
games/random/randomize_fd.c
games/random/randomize_fd.h