Patchwork [v2,11/11] mtd: mtd_stresstest: use random32_get_bytes()

login
register
mail settings
Submitter Akinobu Mita
Date Nov. 3, 2012, 3:43 p.m.
Message ID <1351957422-23243-12-git-send-email-akinobu.mita@gmail.com>
Download mbox | patch
Permalink /patch/196859/
State New
Headers show

Comments

Akinobu Mita - Nov. 3, 2012, 3:43 p.m.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
---
new patch from v2

 drivers/mtd/tests/mtd_stresstest.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/drivers/mtd/tests/mtd_stresstest.c b/drivers/mtd/tests/mtd_stresstest.c
index cb268ce..158d30f 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();
+	random32_get_bytes(writebuf, bufsize);
 
 	err = scan_for_bad_eraseblocks();
 	if (err)