From owner-cvs-src@FreeBSD.ORG Fri Aug 8 01:42:32 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03774106566C; Fri, 8 Aug 2008 01:42:32 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E43768FC0A; Fri, 8 Aug 2008 01:42:31 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m781gVTN063679; Fri, 8 Aug 2008 01:42:31 GMT (envelope-from ache@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m781gVQC063678; Fri, 8 Aug 2008 01:42:31 GMT (envelope-from ache@repoman.freebsd.org) Message-Id: <200808080142.m781gVQC063678@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ache@repoman.freebsd.org using -f From: "Andrey A. Chernov" Date: Fri, 8 Aug 2008 01:42:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/games/random random.c randomize_fd.c randomize_fd.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 01:42:32 -0000 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