diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/init/main.c b/init/main.c index 51b1a88438ff..a17a111d9336 100644 --- a/init/main.c +++ b/init/main.c @@ -685,15 +685,11 @@ asmlinkage __visible void __init start_kernel(void) /* * For best initial stack canary entropy, prepare it after: * - setup_arch() for any UEFI RNG entropy and boot cmdline access - * - timekeeping_init() for ktime entropy used in rand_initialize() + * - timekeeping_init() for ktime entropy used in random_init() * - time_init() for making random_get_entropy() work on some platforms - * - rand_initialize() to get any arch-specific entropy like RDRAND - * - add_latent_entropy() to get any latent entropy - * - adding command line entropy + * - random_init() to initialize the RNG from from early entropy sources */ - rand_initialize(); - add_latent_entropy(); - add_device_randomness(command_line, strlen(command_line)); + random_init(command_line); boot_init_stack_canary(); perf_event_init(); |