kernel/: 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>
This commit is contained in:
Akinobu Mita
2013-04-29 16:21:30 -07:00
committed by Linus Torvalds
parent d3d30417d3
commit 6d65df3325
2 changed files with 2 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ int init_test_probes(void)
target2 = kprobe_target2;
do {
rand1 = random32();
rand1 = prandom_u32();
} while (rand1 <= div_factor);
printk(KERN_INFO "Kprobe smoke test started\n");