Date: Wed, 22 Jun 2005 15:24:00 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/games/random random.c Message-ID: <200506221524.j5MFO1V1045648@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2005-06-22 15:24:00 UTC FreeBSD src repository Modified files: games/random random.c Log: Correct an error in the previous revision. RAND_MAX is the maximum value for rand(3), not random(3). random(3) is defined to return values between 0 and 2^31-1, so add a local RANDOM_MAX constant to this file that is defined as 2^31-1 and use that in place of RAND_MAX. Reviewed by: bde Approved by: re (dwhite) MFC after: 1 week Revision Changes Path 1.19 +9 -3 src/games/random/random.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506221524.j5MFO1V1045648>