1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

Kernel: Initialize TimeManagement before using KernelRNG

We should initialize the timers before KernelRNG as the RNG may want
to utilize system time as an entropy source.

Fixes #8710
This commit is contained in:
Tom 2021-07-16 14:57:44 -06:00 committed by Andreas Kling
parent 7bdd66ed89
commit 3cca9e6704

View file

@ -144,14 +144,15 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init()
InterruptManagement::initialize();
ACPI::initialize();
// Initialize TimeManagement before using randomness!
TimeManagement::initialize(0);
__stack_chk_guard = get_fast_random<u32>();
ProcFSComponentRegistry::initialize();
Thread::initialize();
Process::initialize();
TimeManagement::initialize(0);
Scheduler::initialize();
dmesgln("Starting SerenityOS...");