Skip to content
Commit b83e45fd authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

random: mix in cycle counter when jitter timer fires



Rather than just relying on interaction between cache lines of the timer
and the main loop, also explicitly take into account the fact that the
timer might fire at some time that's hard to predict, due to scheduling,
interrupts, or cross-CPU conditions. Mix in a cycle counter during the
firing of the timer, in addition to the existing one during the
scheduling of the timer. It can't hurt and can only help.

Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
parent 1c21fe00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment