Commit 459a86d8 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

mtd: mtd_nandecctest: use prandom_bytes instead of get_random_bytes()

Using prandom_bytes() is enough.  Because this data is only used
for testing, not used for cryptographic use.
Signed-off-by: default avatarAkinobu 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: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent bf531536
......@@ -256,7 +256,7 @@ static int nand_ecc_test_run(const size_t size)
goto error;
get_random_bytes(correct_data, size);
prandom_bytes(correct_data, size);
__nand_calculate_ecc(correct_data, size, correct_ecc);
for (i = 0; i < ARRAY_SIZE(nand_ecc_test); i++) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment