From: Akinobu Mita Date: Thu, 28 Feb 2013 01:05:31 +0000 (-0800) Subject: mtd: mtd_nandecctest: use prandom_bytes instead of get_random_bytes() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=459a86d83dce6641f66311d37fbfe1419c477a5a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 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: Andrew Morton Signed-off-by: Linus Torvalds --- 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) 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++) {