Re: [PATCH v5 2/5] random: Add and use arch_get_rng_seed

Theodore Ts'o
2014-08-04T22:25:37Z

On Wed, Jul 23, 2014 at 09:57:28PM -0700, Andy Lutomirski wrote:
> Currently, init_std_data contains its own logic for using arch
> random sources. This replaces that logic with a generic function
> arch_get_rng_seed that allows arch code to supply its own logic.
> The default implementation tries arch_get_random_seed_long and
> arch_get_random_long individually.
>
> The only functional change here is that random_get_entropy() is used
> unconditionally instead of being used only when the arch sources
> fail. This may add a tiny amount of security.
>
> Signed-off-by: Andy Lutomirski <luto@amacapital.net>

Acked-by: Theodore Ts'o <tytso@mit.edu>

- Ted