[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flaw in commonly used bash random seed method
- To: "Dave English" <dave.english@xxxxxxxx>, bugtraq@xxxxxxxxxxxxxxxxx
- Subject: Re: Flaw in commonly used bash random seed method
- From: Matthijs <thotter@xxxxxxxxx>
- Date: Tue, 4 Apr 2006 17:02:12 +0200
Erm excuse me, the seed should be 4 BYTES, not bits.
I should really check my posts better before hitting send...
On 4/4/06, Matthijs <thotter@xxxxxxxxx> wrote:
> altough it returns a number between 0 and 32767, it indeed saves a 32
> bit number, so the cycle length of this linear congruential generator
> is actually 2^32. So yes, the seed should be 4 bits and the generator
> is better then I first tought. Sorry about that, I should have checked
> the code a bit more careful.