Re: [PATCH 3/3] random: If we have arch_get_random_seed*(), try it before blocking

From: Ingo Molnar
Date: Wed Mar 05 2014 - 03:45:21 EST



* H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> wrote:

> From: "H. Peter Anvin" <hpa@xxxxxxxxxxxxxxx>
>
> If we have arch_get_random_seed*(), try to use it for emergency refill
> of the entropy pool before giving up and blocking on /dev/random. It
> may or may not work in the moment, but if it does work, it will give
> the user better service than blocking will.
>
> Signed-off-by: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>
> Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>
> ---
> drivers/char/random.c | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)

Reviewed-by: Ingo Molnar <mingo@xxxxxxxxxx>

Thanks,

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