treewide: use get_random_u32() when possible
[linux-block.git] / kernel / bpf / hashtab.c
index ed3f8a53603b9175bb62e5721afb9be7e1c28af7..f39ee3e0558976fc593f81b8ad6c221df0ba4806 100644 (file)
@@ -527,7 +527,7 @@ static struct bpf_map *htab_map_alloc(union bpf_attr *attr)
        if (htab->map.map_flags & BPF_F_ZERO_SEED)
                htab->hashrnd = 0;
        else
-               htab->hashrnd = get_random_int();
+               htab->hashrnd = get_random_u32();
 
        htab_init_buckets(htab);