Date: Mon, 26 Feb 2001 14:22:11 -0800 From: Kris Kennaway <kris@obsecurity.org> To: "Andrey A. Chernov" <ache@nagual.pp.ru> Cc: "Jacques A. Vidrine" <n@nectar.com>, arch@freebsd.org Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) Message-ID: <20010226142211.A20768@mollari.cthul.hu> In-Reply-To: <20010226191008.A72434@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Feb 26, 2001 at 07:10:09PM %2B0300 References: <20010225132152.A39554@mollari.cthul.hu> <20010226005004.B59772@nagual.pp.ru> <20010225135429.A47615@mollari.cthul.hu> <20010226020827.A61007@nagual.pp.ru> <20010225151519.A63582@mollari.cthul.hu> <20010226022902.A61216@nagual.pp.ru> <20010225173445.A37510@spawn.nectar.com> <20010226024456.A61566@nagual.pp.ru> <20010226174852.B435@ringworld.oblivion.bg> <20010226191008.A72434@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2001 at 07:10:09PM +0300, Andrey A. Chernov wrote: > We already go throught all this logn tume ago with the same change with > random() (which is NOT original code). Practice says that nobody seriously > want old behaviour. Moreover, standards (like SUSv2 f.e.) don't guarantee > that the formula must be the same on different machines or even through > different libc versions. It must be the same for single application run > only, so in theory we can change formula for each application run :-) >=20 > So, I plan to skip this step as superfuous. You have my support in this -- people who really want the broken, not-even-statistically-random rand() can add it to their applications; it's only about 5 lines of code. There's no need to penalize everyone else for their mistakes in using it (or misusing it; see concerns about people trying to compare rand() results across different platforms). Kris --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6mtcSWry0BWjoQKURAuBQAJwMaMT4VpTS2tCbHtQNeevwlgrnUwCbB5My kIBc5IetXchaKI9UTAqglnE= =C8cE -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010226142211.A20768>