Re: [PATCH 1/2] random: Add support for architectural random hooks

From: Linus Torvalds
Date: Sun Jul 31 2011 - 00:37:31 EST


On Sat, Jul 30, 2011 at 4:02 PM, Bryan Donlan <bdonlan@xxxxxxxxx> wrote:
>
> In any case though, what about my suggestion - don't mess with urandom
> at all, and let udev replace the /dev/urandom device node with one
> directed to a fast hwrng device if one is detected?

Umm, user space is encouraged to do exactly that.

However, at no point does that mean "the kernel shouldn't do the best
it can". So it's a totally independent issue.

The kernel will want to use rdrand regardless of what user space does.
Both for legacy applications that don't know about rdrand, and for
scripts that don't want to bother. And for just its own use.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/