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:
parent
7bdd66ed89
commit
3cca9e6704
1 changed files with 3 additions and 2 deletions
|
@ -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...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue