diff --git a/net/core/neighbour.c b/net/core/neighbour.c index d274f81fcc2c08f1e85df4ed00b9a034f3ae0739..9784133b0cdb0574c3e4f0fc19776aa896caf52b 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -312,8 +312,7 @@ static struct neighbour *neigh_alloc(struct neigh_table *tbl, struct net_device static void neigh_get_hash_rnd(u32 *x) { - get_random_bytes(x, sizeof(*x)); - *x |= 1; + *x = get_random_u32() | 1; } static struct neigh_hash_table *neigh_hash_alloc(unsigned int shift)