]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_hashlimit.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
[karo-tx-linux.git] / net / netfilter / xt_hashlimit.c
index a3910fc2122bc1aa560815394b525098cb02e85c..d819f62b3b7c7517eb128ac6e522a64273eef752 100644 (file)
@@ -177,7 +177,7 @@ dsthash_alloc_init(struct xt_hashlimit_htable *ht,
        /* initialize hash with random val at the time we allocate
         * the first hashtable entry */
        if (unlikely(!ht->rnd_initialized)) {
-               get_random_bytes(&ht->rnd, sizeof(ht->rnd));
+               ht->rnd = prandom_u32();
                ht->rnd_initialized = true;
        }