rhashtable: use get_random_u32 for hash_rnd

This is much faster and just as secure. It also has the added benefit of
probably returning better randomness at early-boot on systems with
architectural RNGs.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Thomas Graf <tgraf@suug.ch>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by Jason A. Donenfeld and committed by Theodore Ts'o d48ad080 ae5b806a

+1 -1
+1 -1
lib/rhashtable.c
··· 235 235 236 236 INIT_LIST_HEAD(&tbl->walkers); 237 237 238 - get_random_bytes(&tbl->hash_rnd, sizeof(tbl->hash_rnd)); 238 + tbl->hash_rnd = get_random_u32(); 239 239 240 240 for (i = 0; i < nbuckets; i++) 241 241 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i);