Date: Mon, 26 Feb 2001 02:29:03 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Kris Kennaway <kris@obsecurity.org> Cc: arch@FreeBSD.ORG, "Jacques A. Vidrine" <n@nectar.com>, Matt Dillon <dillon@earth.backplane.com>, Bruce Evans <bde@zeta.org.au>, Robert Watson <rwatson@FreeBSD.ORG>, Nick Sayer <nsayer@FreeBSD.ORG>, cvs-all@FreeBSD.ORG Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) Message-ID: <20010226022902.A61216@nagual.pp.ru> In-Reply-To: <20010225151519.A63582@mollari.cthul.hu>; from kris@obsecurity.org on Sun, Feb 25, 2001 at 03:15:19PM -0800 References: <20010225092416.A46959@hamlet.nectar.com> <20010225185535.A55782@nagual.pp.ru> <20010225191316.A56093@nagual.pp.ru> <20010225193409.A56351@nagual.pp.ru> <20010225131002.A38192@mollari.cthul.hu> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
--2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 25, 2001 at 15:15:19 -0800, Kris Kennaway wrote: > On Mon, Feb 26, 2001 at 02:08:28AM +0300, Andrey A. Chernov wrote: > > > Yet it's still used bogusly for cryptographic needs - e.g. even > > > XFree86 4.x seems to use rand() for generating cookies, I discovered > > > last night (as a result of my rand() warning :-). If we fix up rand() > > > to have a decent cryptographic behaviour, we save all the idiot > > > programmers from themselves. > >=20 > > Bad news: we can't implement r_rand() via random() algorithm because > > r_rand() keeps its state in extenal unsigned variable (not in big table > > needed for random()). So, I suggest again to use my patch since it _is_ > > r_rand() compatible. >=20 > Hmm. Perhaps there's a way around that -- having a single state > variable really does weaken things here. Anyone have any ideas? As manpage says: "The rand_r() function is as proposed in the POSIX.4a Draft #6 document" Does anybody knows is there new versions of this draft exists and what they say? --=20 Andrey A. Chernov http://ache.pp.ru/ --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBOpmVPeJgpPLZnQjrAQHb9QQAzGK+xk+8QqDRA+ANcf6ts3O/KVzTy5vl JPVi0yZJblSQbCIvni/TGmnPigAxPLZgBW3/oyolvnHNNwOELvlJ0tLyB5neiv18 cpYCfjle85V3obQtZuybKpJqqed4aox5AwTV0a8L7G6dx9SKBQVavHSkdF4SqVaB s4hOFrznWXs= =nnB9 -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010226022902.A61216>