[PATCH v2] nandtest: seed random generator with time

Artem Bityutskiy dedekind1 at gmail.com
Mon Dec 5 01:30:13 EST 2011


On Fri, 2011-12-02 at 09:46 -0800, Brian Norris wrote:
> If a seed is not provided via --seed, we use the default rand() values,
> which produces the same sequence of values every run. Since this is
> undesirable, we should choose a random seed via the current time().
> 
> Note that this patch moves the srand() until after all the initial
> options processing.

Pushed, thanks!

Artem.




More information about the linux-mtd mailing list