From owner-freebsd-current Tue Feb 18 15:40:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD69337B401; Tue, 18 Feb 2003 15:40:53 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81BEC43FBF; Tue, 18 Feb 2003 15:40:51 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.7/8.12.7) with ESMTP id h1INeoEJ058441; Wed, 19 Feb 2003 02:40:50 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.7/8.12.6/Submit) id h1INenaD058440; Wed, 19 Feb 2003 02:40:49 +0300 (MSK) (envelope-from ache) Date: Wed, 19 Feb 2003 02:40:49 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: Tim Robbins , current@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdlib rand.c Message-ID: <20030218234049.GA58400@nagual.pp.ru> References: <200302170352.h1H3qawJ062671@repoman.freebsd.org> <20030217045729.GA68471@rot13.obsecurity.org> <20030217164048.A28273@dilbert.robbins.dropbear.id.au> <20030217060810.GA68835@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <20030217060810.GA68835@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 16, 2003 at 22:08:10 -0800, Kris Kennaway wrote: > when they should not. I've given examples of two of them, and there > are probably lots of others I haven't noticed. For example, I just > checked, and libICE appears to use rand() for cookie generation. This > is completely bogus, and insecure. Usually applications we build (like awk, etc.) could be fixed by simple=20 one line change: srand(something) -> sranddev() It completely eliminates first value correlation problem. --=20 Andrey A. Chernov http://ache.pp.ru/ --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPlLEgeJgpPLZnQjrAQGuTAP/WPpW0d8/glpLBNinL1nVAL1thvxBAwAr fU0sBVfcn5NQ4CHqZuEgXfSd1AA/4PihEbZQTneFzQnTV7bPG3MyxHTwxi39TbwH YkhZ146QpJfFVo5ctzLWJLuRlLR6UA9HnjSk0vjOSx7yXED17U1VgoNdl0im/yTo SiFX2G1zA2U= =lTs4 -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message