Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_recent.c
index bfdc29f1a04a82073a8527c599f7ca4dfdf09b78..1e657cf715c478d9a9ec77411bf7536b14278d14 100644 (file)
@@ -334,7 +334,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par,
        size_t sz;
 
        if (unlikely(!hash_rnd_inited)) {
-               hash_rnd = prandom_u32();
+               get_random_bytes(&hash_rnd, sizeof(hash_rnd));
                hash_rnd_inited = true;
        }
        if (info->check_set & ~XT_RECENT_VALID_FLAGS) {