mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Akinobu Mita <[email protected]> Cc: Artem Bityutskiy <[email protected]> Cc: David Woodhouse <[email protected]> Cc: "Theodore Ts'o" <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: David Laight <[email protected]> Cc: Eilon Greenstein <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Robert Love <[email protected]> Cc: Valdis Kletnieks <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bf5315366b
commit
459a86d83d
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue