cvs commit: src/games/random random.c
Andrey A. Chernov
ache at FreeBSD.org
Fri Aug 8 01:02:43 UTC 2008
ache 2008-08-08 01:02:30 UTC
FreeBSD src repository
Modified files:
games/random random.c
Log:
SVN rev 181409 on 2008-08-08 01:02:30Z by ache
1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be)
value with ((double)RAND_MAX + 1)
2) For exit code increase valid denominator upper range from 255 to 256
since returned value is [0 .. denom - 1]
Revision Changes Path
1.21 +5 -11 src/games/random/random.c
More information about the cvs-src
mailing list