Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices
From: Keith Packard
Date: Tue Aug 09 2016 - 19:26:43 EST
Henrique de Moraes Holschuh <hmh@xxxxxxxxxx> writes:
> IMHO, this is mightly annoying to use from inside a rngd-like utility in
> a race-free, safe way. It looks to me that ioctl() would be a much
> better interface for everything but the "enabled" functionality (which
> should be reported to the rngd-like utility as open() on the real device
> failing with, e.g., ENXIO, when that source is disabled).
What information does an rngd-like program actually want? All I can
think that it would need is the stream of random data. I guess some
estimate of the entropy available would be nice, but surely it would
want to verify that in any case.
--
-keith
Attachment:
signature.asc
Description: PGP signature