aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/random.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 9793b40f5754..1a2dfa816041 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1087,6 +1087,16 @@ static void init_std_data(struct entropy_store *r)
1087 mix_pool_bytes(r, utsname(), sizeof(*(utsname())), NULL); 1087 mix_pool_bytes(r, utsname(), sizeof(*(utsname())), NULL);
1088} 1088}
1089 1089
1090/*
1091 * Note that setup_arch() may call add_device_randomness()
1092 * long before we get here. This allows seeding of the pools
1093 * with some platform dependent data very early in the boot
1094 * process. But it limits our options here. We must use
1095 * statically allocated structures that already have all
1096 * initializations complete at compile time. We should also
1097 * take care not to overwrite the precious per platform data
1098 * we were given.
1099 */
1090static int rand_initialize(void) 1100static int rand_initialize(void)
1091{ 1101{
1092 init_std_data(&input_pool); 1102 init_std_data(&input_pool);