]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: use get_random_u32 for hash_rnd
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 8 Jun 2017 02:47:13 +0000 (22:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Jun 2017 02:06:28 +0000 (22:06 -0400)
commita1a39bf60b6520316c48e1edf16d578d0f34ad17
tree85a3211479e495739ba9a2763cf2a8095e70f87f
parent03e5c16ed4cb5626ad36db4e3c49eb52385d2cf7
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>
lib/rhashtable.c