summaryrefslogtreecommitdiff
path: root/Kernel/Devices/PS2MouseDevice.h
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2020-06-24 14:07:28 -0600
committerAndreas Kling <kling@serenityos.org>2020-06-25 21:05:40 +0200
commitaf0b2d1d86761dd7dc89bb605794093968a0a74f (patch)
tree3c4cc42287c297f59d0229657039a796895a337f /Kernel/Devices/PS2MouseDevice.h
parent2e8cfe5435f806538fe680235b2e9792ca34b201 (diff)
downloadserenity-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.h2
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;
};
}