From 67e93745cb8173218e8e2c67f4e39c87a47d72f5 Mon Sep 17 00:00:00 2001 From: Maciej Zygmanowski Date: Sat, 23 Jan 2021 11:42:19 +0100 Subject: [PATCH] Kernel: Ensure that HPET is initialized before using random the first time --- Kernel/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index b16142660bd..d216c9dfae3 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -144,10 +144,10 @@ extern "C" [[noreturn]] void init() klog() << "Starting SerenityOS..."; - __stack_chk_guard = get_fast_random(); - TimeManagement::initialize(0); + __stack_chk_guard = get_fast_random(); + NullDevice::initialize(); if (!get_serial_debug()) new SerialDevice(SERIAL_COM1_ADDR, 64);