summaryrefslogtreecommitdiffstats
path: root/kernel/test_kprobes.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-04-30 01:21:30 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 03:28:42 +0200
commit6d65df3325c380f3c897330c48f0e53d73b8f362 (patch)
tree469323f63abe2d00925328c7fbcb41624dc85949 /kernel/test_kprobes.c
parentmm/: rename random32() to prandom_u32() (diff)
downloadlinux-6d65df3325c380f3c897330c48f0e53d73b8f362.tar.xz
linux-6d65df3325c380f3c897330c48f0e53d73b8f362.zip
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>
Diffstat (limited to 'kernel/test_kprobes.c')
-rw-r--r--kernel/test_kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/test_kprobes.c b/kernel/test_kprobes.c
index f8b11a283171..12d6ebbfdd83 100644
--- a/kernel/test_kprobes.c
+++ b/kernel/test_kprobes.c
@@ -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");