Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[platform/kernel/linux-starfive.git] / net / netfilter / xt_connlimit.c
index 7671e82..c40b269 100644 (file)
@@ -229,7 +229,7 @@ static int connlimit_mt_check(const struct xt_mtchk_param *par)
                u_int32_t rand;
 
                do {
-                       rand = prandom_u32();
+                       get_random_bytes(&rand, sizeof(rand));
                } while (!rand);
                cmpxchg(&connlimit_rnd, 0, rand);
        }