summaryrefslogtreecommitdiffstats
path: root/lib/test_kprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_kprobes.c')
-rw-r--r--lib/test_kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_kprobes.c b/lib/test_kprobes.c
index a5edc2ebc947..eeb1d728d974 100644
--- a/lib/test_kprobes.c
+++ b/lib/test_kprobes.c
@@ -341,7 +341,7 @@ static int kprobes_test_init(struct kunit *test)
stacktrace_driver = kprobe_stacktrace_driver;
do {
- rand1 = prandom_u32();
+ rand1 = get_random_u32();
} while (rand1 <= div_factor);
return 0;
}