[PATCH v2] mtd: torturetest: add the support for random data pattern

Artem Bityutskiy dedekind1 at gmail.com
Sat Mar 2 09:44:53 EST 2013


On Sat, 2013-02-16 at 12:00 +0800, Huang Shijie wrote:
> On Wed, Feb 13, 2013 at 6:37 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> > On Tue, 2013-02-05 at 16:21 +0800, Huang Shijie wrote:
> >> Add a new module parameter 'pattern'. The meaning of the pattern is:
> >>   (1) pattern == 0 for 55/AA pattern.
> >>   (2) pattern < 0 for random pattern.
> >>   (3) pattern > 0 for random pattern too, the value of the pattern is used
> >>       as the seed for the random generator.
> >
> > Please, do not add parameters, make it simple - teach the test to use
> > both the old patterns plus additional cycles with random patterns.
> 
> but if we do not add new parameter, how can we create a random seed?

Unless you have a real practical reason to let users pass the initial
random seed, do not do this.

> Is it ok without set the random seed?

I think so.

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list