From owner-cvs-src@FreeBSD.ORG Thu Jun 23 00:27:36 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9414016A41F; Thu, 23 Jun 2005 00:27:36 +0000 (GMT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316C743D49; Thu, 23 Jun 2005 00:27:35 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id F0C6185692; Thu, 23 Jun 2005 09:57:34 +0930 (CST) Date: Thu, 23 Jun 2005 09:57:34 +0930 From: Greg 'groggy' Lehey To: John Baldwin Message-ID: <20050623002734.GE37620@wantadilla.lemis.com> References: <200506221524.j5MFO1V1045648@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WG0/bXtUnGTsWt66" Content-Disposition: inline In-Reply-To: <200506221524.j5MFO1V1045648@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/games/random random.c 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: Thu, 23 Jun 2005 00:27:36 -0000 --WG0/bXtUnGTsWt66 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 22 June 2005 at 15:24:00 +0000, John Baldwin wrote: > 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. How much effect did this bug have on the results of random(3)? Greg -- The virus contained in this message was not detected. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --WG0/bXtUnGTsWt66 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCugH2IubykFB6QiMRAjdAAJ9Hgzvajwrw7Lpb4HV2jnIqV9dYewCgiKKA gRe2WsunV4wihSVxS08reZk= =ahqb -----END PGP SIGNATURE----- --WG0/bXtUnGTsWt66--