aboutsummaryrefslogtreecommitdiff
path: root/net/netlink
diff options
context:
space:
mode:
authorimoseyon <imoseyon@gmail.com>2014-12-14 10:36:51 -0800
committerMoyster <oysterized@gmail.com>2016-09-10 12:06:52 +0200
commite9c9fff8d3d4e053157db364ae4840882ab30eac (patch)
tree43be6a1fd3e2e87290c8820c896c468a4b09e7b2 /net/netlink
parentb245cbd5c6ae4cfa0fea4f61b84efc0d2397df78 (diff)
random: sprinkle e/f/prandom in places that deplete entropy often
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c2
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;