diff options
author | Peter Elliott <pelliott@ualberta.ca> | 2020-06-24 14:07:28 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-25 21:05:40 +0200 |
commit | af0b2d1d86761dd7dc89bb605794093968a0a74f (patch) | |
tree | 3c4cc42287c297f59d0229657039a796895a337f /Kernel/Devices/PS2MouseDevice.h | |
parent | 2e8cfe5435f806538fe680235b2e9792ca34b201 (diff) | |
download | serenity-af0b2d1d86761dd7dc89bb605794093968a0a74f.zip |
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.
Diffstat (limited to 'Kernel/Devices/PS2MouseDevice.h')
-rw-r--r-- | Kernel/Devices/PS2MouseDevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <Kernel/Devices/CharacterDevice.h> #include <Kernel/Interrupts/IRQHandler.h> #include <Kernel/MousePacket.h> +#include <Kernel/Random.h> 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; }; } |