Date: Wed, 19 Feb 2003 02:40:49 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Kris Kennaway <kris@obsecurity.org> Cc: Tim Robbins <tjr@FreeBSD.ORG>, current@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdlib rand.c Message-ID: <20030218234049.GA58400@nagual.pp.ru> In-Reply-To: <20030217060810.GA68835@rot13.obsecurity.org> References: <200302170352.h1H3qawJ062671@repoman.freebsd.org> <20030217045729.GA68471@rot13.obsecurity.org> <20030217164048.A28273@dilbert.robbins.dropbear.id.au> <20030217060810.GA68835@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030218234049.GA58400>