Re: Flaw in commonly used bash random seed method
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.