Date: Fri, 8 Aug 2008 01:42:17 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/games/random random.c randomize_fd.c randomize_fd.h Message-ID: <200808080142.m781gVQC063678@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2008-08-08 01:42:17 UTC FreeBSD src repository Modified files: games/random random.c randomize_fd.c randomize_fd.h Log: SVN rev 181410 on 2008-08-08 01:42:17Z by ache 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) Revision Changes Path 1.22 +3 -3 src/games/random/random.c 1.4 +1 -1 src/games/random/randomize_fd.c 1.3 +6 -0 src/games/random/randomize_fd.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808080142.m781gVQC063678>