Merge tag 'for-linus-20130301' of git://git.infradead.org/linux-mtd
[linux-3.10.git] / drivers / mtd / tests / mtd_stresstest.c
index 1d29739..787f539 100644 (file)
@@ -282,8 +282,7 @@ static int __init mtd_stresstest_init(void)
        }
        for (i = 0; i < ebcnt; i++)
                offsets[i] = mtd->erasesize;
-       for (i = 0; i < bufsize; i++)
-               writebuf[i] = random32();
+       prandom_bytes(writebuf, bufsize);
 
        err = scan_for_bad_eraseblocks();
        if (err)