diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-29 19:21:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:42 -0400 |
commit | 2e744fcb90599819b43415e2e6d6a6a550248645 (patch) | |
tree | 07dba5bc49ceac0d0432d58d851b620442aa0ac0 | |
parent | 38b682b26112fd85de6c9eae5836371cc7cc5375 (diff) |
mmc: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Chris Ball <cjb@laptop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/mmc/core/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 08a3cf2a7610..9290bb51a06a 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -120,8 +120,8 @@ static void mmc_should_fail_request(struct mmc_host *host, | |||
120 | !should_fail(&host->fail_mmc_request, data->blksz * data->blocks)) | 120 | !should_fail(&host->fail_mmc_request, data->blksz * data->blocks)) |
121 | return; | 121 | return; |
122 | 122 | ||
123 | data->error = data_errors[random32() % ARRAY_SIZE(data_errors)]; | 123 | data->error = data_errors[prandom_u32() % ARRAY_SIZE(data_errors)]; |
124 | data->bytes_xfered = (random32() % (data->bytes_xfered >> 9)) << 9; | 124 | data->bytes_xfered = (prandom_u32() % (data->bytes_xfered >> 9)) << 9; |
125 | } | 125 | } |
126 | 126 | ||
127 | #else /* CONFIG_FAIL_MMC_REQUEST */ | 127 | #else /* CONFIG_FAIL_MMC_REQUEST */ |