treewide: use get_random_u32() when possible
[linux-block.git] / kernel / bpf / verifier.c
index 6f6d2d511c06f8804664cfab31d6d7dacadad505..014ee0953dbdea83bec4d794005e5a56e16e4d08 100644 (file)
@@ -13350,7 +13350,7 @@ static int opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env,
                            aux[adj_idx].ptr_type == PTR_TO_CTX)
                                continue;
 
-                       imm_rnd = get_random_int();
+                       imm_rnd = get_random_u32();
                        rnd_hi32_patch[0] = insn;
                        rnd_hi32_patch[1].imm = imm_rnd;
                        rnd_hi32_patch[3].dst_reg = load_reg;