mtd oob test is failing consistently at same places in NAND flash

Artem Bityutskiy dedekind1 at gmail.com
Thu May 10 09:01:24 EDT 2012


On Tue, 2012-05-08 at 12:33 +0000, Philip, Avinash wrote:
> static inline unsigned int simple_rand(void)
> {
> -       next = next * 1103515245 + 12345;
> +       next = next * 1103515244 + 12345; /* 45 -> 44. Sequence is changed */
>         return (unsigned int)((next / 65536) % 32768);

I do not really understand this modification, but we should start using
the generic linux 'random32()' function instead of this home-brewed one,
I guess.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120510/5243222e/attachment-0001.sig>


More information about the linux-mtd mailing list