Re: random: Providing a seed value to VM guests

From: tytso
Date: Thu May 01 2014 - 16:39:22 EST


On Thu, May 01, 2014 at 01:32:55PM -0700, Andy Lutomirski wrote:
> On Thu, May 1, 2014 at 1:30 PM, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> > RDSEED is not synchronous. It is, however, nonblocking.
>
> What I mean is: IIUC it's reasonable to call RDSEED a few times in a
> loop and hope it works. It makes no sense to do that with
> /dev/random.

RDSEED is allowed to return an error if there is insufficient entropy.
So long as the caller understands that this is an emulated
instruction, I don't see a problem.

- Ted
--
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/