diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-07-05 10:21:01 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-08-10 00:24:45 +0100 |
commit | 060bc1d0cb527cf8b77f049ff6a595ddb68a41c8 (patch) | |
tree | 18364dc88bd86580a82a799ef62528694924bb92 /include | |
parent | 322f326e39b1c06a24e2e927db0a46e6e054cd2b (diff) |
random: use the arch-specific rng in xfer_secondary_pool
commit e6d4947b12e8ad947add1032dd754803c6004824 upstream.
If the CPU supports a hardware random number generator, use it in
xfer_secondary_pool(), where it will significantly improve things and
where we can afford it.
Also, remove the use of the arch-specific rng in
add_timer_randomness(), since the call is significantly slower than
get_cycles(), and we're much better off using it in
xfer_secondary_pool() anyway.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions