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-Tag: accepted/tizen/common/20141203.182822~2762^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=459a86d83dce6641f66311d37fbfe1419c477a5a;p=platform%2Fkernel%2Flinux-arm64.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 1eee264..db2f22e 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++) {