Re: [PATCH] random: fix rdrand mix-in

From: Linus Torvalds
Date: Tue Jul 17 2018 - 20:01:20 EST


On Tue, Jul 17, 2018 at 2:12 PM Theodore Y. Ts'o <tytso@xxxxxxx> wrote:
>
> I wasn't sure how quickly the HW entropy would replenish itself; I
> know that on first RDRAND platforms it would effectively never fail
> (as in if six of the eight cores were calling RDRAND in a tight loop
> _maybe_ you could exhaust the HW entropy).

I suspect you can't hit it in practice on Intel systems, but maybe you
can on others. And maybe future other architectures might be different
yet.

But rdrand has the potential of being pretty slow, and it's almost
certainly not worth continuing if it stopped giving us data.

Linus