Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph...
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_statistic.c
index 4fe4fb4276d0076061610418b8154e9d11cd80b8..11de55e7a868950c6b9ad5bbfa0a0561eb8787d7 100644 (file)
@@ -37,7 +37,7 @@ statistic_mt(const struct sk_buff *skb, struct xt_action_param *par)
 
        switch (info->mode) {
        case XT_STATISTIC_MODE_RANDOM:
-               if ((net_random() & 0x7FFFFFFF) < info->u.random.probability)
+               if ((prandom_u32() & 0x7FFFFFFF) < info->u.random.probability)
                        ret = !ret;
                break;
        case XT_STATISTIC_MODE_NTH: