From: Akinobu Mita Date: Thu, 28 Feb 2013 01:05:40 +0000 (-0800) Subject: mtd: mtd_stresstest: use prandom_bytes() X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4debec7abc59830f3fecd9022d07d1d19a676238;p=~shefty%2Frdma-dev.git mtd: mtd_stresstest: use prandom_bytes() Signed-off-by: Akinobu Mita Cc: Artem Bityutskiy Cc: David Woodhouse Cc: "Theodore Ts'o" Cc: Adrian Hunter Cc: David Laight Cc: Eilon Greenstein Cc: Michel Lespinasse Cc: Robert Love Cc: Valdis Kletnieks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/mtd/tests/mtd_stresstest.c b/drivers/mtd/tests/mtd_stresstest.c index 3729f679ae5..2d7e6cffd6d 100644 --- a/drivers/mtd/tests/mtd_stresstest.c +++ b/drivers/mtd/tests/mtd_stresstest.c @@ -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)