Date: Mon, 3 Feb 2003 01:48:57 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Mark Murray <mark@grondar.org> Cc: current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202224857.GA69078@nagual.pp.ru> In-Reply-To: <200302022235.h12MZsaX052670@grimreaper.grondar.org> References: <20030202223043.GB68806@nagual.pp.ru> <200302022235.h12MZsaX052670@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 02, 2003 at 22:35:54 +0000, Mark Murray wrote: > > I stand (somewhat) corrected. The random() code is _nasty_ complexity-wise. > Its not obvious how it works. > > RC4 is 10-20 lines and clean with no magic numbers. That's why randomness tests + mathematician to interpretate their results are needed to compare what we have now in random(3) with RC4. Easy and understandable code not always mean better results. We can't switch algorithms blindly, i.e. when their comparative quality remains unknown. -- Andrey A. Chernov http://ache.pp.ru/ 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?20030202224857.GA69078>