treewide: use get_random_u32() when possible
[linux-block.git] / kernel / bpf / core.c
index 53c6c98bda7b6d6bea42e66db40de2b6be94b925..25a54e04560e5370635bd31dd007db754ecfae46 100644 (file)
@@ -1216,7 +1216,7 @@ static int bpf_jit_blind_insn(const struct bpf_insn *from,
                              bool emit_zext)
 {
        struct bpf_insn *to = to_buff;
-       u32 imm_rnd = get_random_int();
+       u32 imm_rnd = get_random_u32();
        s16 off;
 
        BUILD_BUG_ON(BPF_REG_AX  + 1 != MAX_BPF_JIT_REG);