aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests')
-rw-r--r--drivers/mtd/tests/mtd_nandecctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c
index 1eee264509a8..db2f22e7966a 100644
--- a/drivers/mtd/tests/mtd_nandecctest.c
+++ b/drivers/mtd/tests/mtd_nandecctest.c
@@ -256,7 +256,7 @@ static int nand_ecc_test_run(const size_t size)
256 goto error; 256 goto error;
257 } 257 }
258 258
259 get_random_bytes(correct_data, size); 259 prandom_bytes(correct_data, size);
260 __nand_calculate_ecc(correct_data, size, correct_ecc); 260 __nand_calculate_ecc(correct_data, size, correct_ecc);
261 261
262 for (i = 0; i < ARRAY_SIZE(nand_ecc_test); i++) { 262 for (i = 0; i < ARRAY_SIZE(nand_ecc_test); i++) {