|
@@ -1087,6 +1087,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);
|