summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests/speedtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/speedtest.c')
-rw-r--r--drivers/mtd/tests/speedtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/speedtest.c b/drivers/mtd/tests/speedtest.c
index c9ec7086bfa1..075bce32caa5 100644
--- a/drivers/mtd/tests/speedtest.c
+++ b/drivers/mtd/tests/speedtest.c
@@ -223,7 +223,7 @@ static int __init mtd_speedtest_init(void)
if (!iobuf)
goto out;
- prandom_bytes(iobuf, mtd->erasesize);
+ get_random_bytes(iobuf, mtd->erasesize);
bbt = kzalloc(ebcnt, GFP_KERNEL);
if (!bbt)