lib/: rename random32() to prandom_u32()

Use preferable function name which implies using a pseudo-random
number generator.

Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Akinobu Mita 2013-04-29 16:21:28 -07:00 • committed by Linus Torvalds
commit f39fee5f11
2 changed files with 2 additions and 2 deletions

View file

@ -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))