]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/neighbour.c
Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / net / core / neighbour.c
index e31fc11a80001503a6c6224f8289378e4246d310..d0713627deb61623524c4b5cd26454abe92fc6d9 100644 (file)
@@ -347,8 +347,7 @@ out_entries:
 
 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)