Re: [PATCH] um: seed rng using host OS rng

From: Johannes Berg
Date: Wed Jul 13 2022 - 03:03:49 EST


On Wed, 2022-07-13 at 07:58 +0100, Anton Ivanov wrote:
>
> IIRC UML RNG device reads directly from host.

Yes, but that's a /dev/hwrng device, so you still need some userspace to
feed entropy from that into /dev/random.

> If you are using UMLs own /dev/random you are effectively using the host
> one.

> So unless I am mistaken, you need extra randomness only if you do not
> have UMLs /dev/random compiled in.

No, neither of those is true.

johannes