Skip to content

Commit

Permalink
random: rather than entropy_store abstraction, use global
Browse files Browse the repository at this point in the history
commit 90ed1e6 upstream.

Originally, the RNG used several pools, so having things abstracted out
over a generic entropy_store object made sense. These days, there's only
one input pool, and then an uneven mix of usage via the abstraction and
usage via &input_pool. Rather than this uneasy mixture, just get rid of
the abstraction entirely and have things always use the global. This
simplifies the code and makes reading it a bit easier.

Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
zx2c4 authored and gregkh committed May 30, 2022
1 parent 5897e06 commit 8cc5260
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 158 deletions.

0 comments on commit 8cc5260

Please sign in to comment.