diff options
| author | imoseyon <imoseyon@gmail.com> | 2014-12-14 10:36:51 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 12:06:52 +0200 |
| commit | e9c9fff8d3d4e053157db364ae4840882ab30eac (patch) | |
| tree | 43be6a1fd3e2e87290c8820c896c468a4b09e7b2 /net/netlink | |
| parent | b245cbd5c6ae4cfa0fea4f61b84efc0d2397df78 (diff) | |
random: sprinkle e/f/prandom in places that deplete entropy often
Diffstat (limited to 'net/netlink')
| -rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 9eba0240f..92998c696 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -913,7 +913,7 @@ static int nl_portid_hash_rehash(struct nl_portid_hash *hash, int grow) hash->table = table; hash->mask = mask; hash->shift = shift; - get_random_bytes(&hash->rnd, sizeof(hash->rnd)); + prandom_bytes(&hash->rnd, sizeof(hash->rnd)); for (i = 0; i <= omask; i++) { struct sock *sk; |
