diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-30 03:21:28 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 05:28:42 +0400 |
commit | f39fee5f11f7adfcf5c9643f87718b80450be18a (patch) | |
tree | 5565b5c7d22b4f16327dd675c9764669b5b81219 /lib/fault-inject.c | |
parent | 56a1ba5fd1802c059d08d72d09c1fec6e02e2c35 (diff) | |
download | linux-f39fee5f11f7adfcf5c9643f87718b80450be18a.tar.xz |
lib/: 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/fault-inject.c')
-rw-r--r-- | lib/fault-inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fault-inject.c b/lib/fault-inject.c index f7210ad6cffd..c5c7a762b850 100644 --- a/lib/fault-inject.c +++ b/lib/fault-inject.c @@ -122,7 +122,7 @@ bool should_fail(struct fault_attr *attr, ssize_t size) return false; } - if (attr->probability <= random32() % 100) + if (attr->probability <= prandom_u32() % 100) return false; if (!fail_stacktrace(attr)) |