| From | Linus Torvalds <> | Date | Thu, 5 Jul 2012 11:52:17 -0700 | Subject | Re: [PATCH 01/10] random: make 'add_interrupt_randomness()' do something sane |
| |
On Thu, Jul 5, 2012 at 11:47 AM, Matt Mackall <mpm@selenic.com> wrote: > > I think you should demand a minimum number of events > HZ to actually > credit any valid entropy.
There already is. It's 1.
If we don't get a single non-timer interrupt, this code will never be called.
And if we only get a single interrupt in over one HZ, then there very arguably is one bit of entropy in 'jiffies' at the time of that interrupt.
Linus
|