mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +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:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user