Re: [PATCH 13/10] tests for various pack index features
- From
- Olivier Galibert <galibert@pobox.com>
- Date
- Apr 11, 2007, 13:09 UTC
- Message-ID
- <20070411130932.GA17094@dspnet.fr.eu.org>
- In-Reply-To
- <alpine.LFD.0.98.0704110850010.28181@xanadu.home>
On Wed, Apr 11, 2007 at 08:57:09AM -0400, Nicolas Pitre wrote:
> Hmmm what we need is a random data generator that always produces the > same thing. I'll hack something to replace urandom.
Don't hack something, ues the standard reference, the Mersenne Twister.
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
PRNGs are the same as cryptosystems, it's very easy to hack up something and get it very, very wrong. And it's unnecessary, since there are very good ones available.
OG.