aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJan Varho <[email protected]>2022-04-04 19:42:30 +0300
committerJason A. Donenfeld <[email protected]>2022-04-04 19:34:49 +0200
commit527a9867af29ff89f278d037db704e0ed50fb666 (patch)
tree813bfe6933d2159b39f3c871f0b707064363c21f /lib/mpi/mpiutil.c
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
random: do not split fast init input in add_hwgenerator_randomness()
add_hwgenerator_randomness() tries to only use the required amount of input for fast init, but credits all the entropy, rather than a fraction of it. Since it's hard to determine how much entropy is left over out of a non-unformly random sample, either give it all to fast init or credit it, but don't attempt to do both. In the process, we can clean up the injection code to no longer need to return a value. Signed-off-by: Jan Varho <[email protected]> [Jason: expanded commit message] Fixes: 73c7733f122e ("random: do not throw away excess input to crng_fast_load") Cc: [email protected] # 5.17+, requires af704c856e88 Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions