diff --git a/drivers/char/random.c b/drivers/char/random.c index 918979fb4131f6e2d7c414b7865689822ebcf9a1..8ae92357378160fba36ced80412a835be204a263 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -1114,6 +1114,16 @@ static void init_std_data(struct entropy_store *r) mix_pool_bytes(r, utsname(), sizeof(*(utsname())), NULL); } +/* + * Note that setup_arch() may call add_device_randomness() + * long before we get here. This allows seeding of the pools + * with some platform dependent data very early in the boot + * process. But it limits our options here. We must use + * statically allocated structures that already have all + * initializations complete at compile time. We should also + * take care not to overwrite the precious per platform data + * we were given. + */ static int rand_initialize(void) { init_std_data(&input_pool);