]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix for 64-bit platforms. random() returns values between 0 and RAND_MAX,
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 27 May 2005 15:29:01 +0000 (15:29 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 27 May 2005 15:29:01 +0000 (15:29 +0000)
commitb0a7bd8e8835b968de897253ad7944d195c540e3
treed04ed437eec65552e36eb80d0a95f7743ca07d23
parent886f89afda9590e245d0acd389d0090a507ee175
Fix for 64-bit platforms.  random() returns values between 0 and RAND_MAX,
and RAND_MAX != LONG_MAX on 64-bit platforms.

PR: amd64/81279
Submitted by: Vivek Khera vivek at khera dot org
Submitted by: Adriaan de Groot groot at kde dot org
MFC after: 1 week
games/random/random.c