On Mon, Aug 10, 2020 at 9:59 AM Willy Tarreau <w...@1wt.eu> wrote: > > I took what we were already using in add_interrupt_randomness() since > I considered that if it was acceptable there, it probably was elsewhere.
Once you've taken an interrupt, you're doing IO anyway, and the interrupt costs will dominate anything you do. But the prandom_u32() interface is potentially done many times per interrupt. For all I know it's done inside fairly critical locks etc too. So I don't think one usage translates to another very well. Linus