From af0b2d1d86761dd7dc89bb605794093968a0a74f Mon Sep 17 00:00:00 2001 From: Peter Elliott Date: Wed, 24 Jun 2020 14:07:28 -0600 Subject: Kernel: Harvest randomness from various drivers Random now gets entropy from the following drivers: - KeyboardDevice - PATAChannel - PS2MouseDevice - E1000NetworkAdapter - RTL8139NetworkAdapter Of these devices, PS2MouseDevice and PATAChannel provide the vast majority of the entropy. --- Kernel/Devices/PS2MouseDevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel/Devices/PS2MouseDevice.h') diff --git a/Kernel/Devices/PS2MouseDevice.h b/Kernel/Devices/PS2MouseDevice.h index 5ed62b52db..cfb2557f85 100644 --- a/Kernel/Devices/PS2MouseDevice.h +++ b/Kernel/Devices/PS2MouseDevice.h @@ -30,6 +30,7 @@ #include #include #include +#include namespace Kernel { @@ -77,6 +78,7 @@ private: u8 m_data[4]; bool m_has_wheel { false }; bool m_has_five_buttons { false }; + EntropySource m_entropy_source; }; } -- cgit v1.2.3