netfilter: Enhance the codes used to get random once
authorGao Feng <fgao@ikuai8.com>
Sun, 18 Sep 2016 02:52:25 +0000 (10:52 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Sep 2016 07:30:36 +0000 (09:30 +0200)
commit7bdc66242de7f9cbe8dbb01757042dd18744d800
tree6994143546494084ca28057c9af41b9a0dd079f4
parenta20877b5edec4d2b62560b5245199af04846476c
netfilter: Enhance the codes used to get random once

There are some codes which are used to get one random once in netfilter.
We could use net_get_random_once to simplify these codes.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_RATEEST.c
net/netfilter/xt_connlimit.c
net/netfilter/xt_recent.c