Commit c321e90
random: continually use hwgenerator randomness
The rngd kernel thread may sleep indefinitely if the entropy count is
kept above random_write_wakeup_bits by other entropy sources. To make
best use of multiple sources of randomness, mix entropy from hardware
RNGs into the pool at least once within CRNG_RESEED_INTERVAL.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>1 parent d2a02e3 commit c321e90
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2205 | 2205 | | |
2206 | 2206 | | |
2207 | 2207 | | |
2208 | | - | |
| 2208 | + | |
2209 | 2209 | | |
2210 | | - | |
| 2210 | + | |
| 2211 | + | |
2211 | 2212 | | |
2212 | | - | |
| 2213 | + | |
2213 | 2214 | | |
2214 | | - | |
| 2215 | + | |
| 2216 | + | |
2215 | 2217 | | |
2216 | 2218 | | |
2217 | 2219 | | |
| |||
0 commit comments