]> git.baikalelectronics.ru Git - kernel.git/commit
random: remove unneeded hash of a portion of the entropy pool
authorTheodore Ts'o <tytso@mit.edu>
Wed, 11 Jun 2014 03:09:20 +0000 (23:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jul 2014 08:49:39 +0000 (04:49 -0400)
commit9ab198b0b8b3e35c9267a815e6b188e04c75cf94
tree506408b80b020f5856874812045f7c826513a78e
parentfaf3fe66874fc473a9777aa1dec5f7f2fd982de7
random: remove unneeded hash of a portion of the entropy pool

We previously extracted a portion of the entropy pool in
mix_pool_bytes() and hashed it in to avoid racing CPU's from returning
duplicate random values.  Now that we are using a spinlock to prevent
this from happening, this is no longer necessary.  So remove it, to
simplify the code a bit.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: George Spelvin <linux@horizon.com>
drivers/char/random.c