From 7d7f0aa9595bedf50083fb89dae049c1f064ca98 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 4 Jul 2024 18:29:17 +0200 Subject: Random: Improve random seeding. Now it appears to be sufficiently good at producing a distinct seed at each boot without using a /etc/seed file. Previously it did not do this. Of course this is nowhere near cryptographically secure but randomness does assist with things such as kmalloc. --- kernel/random.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kernel/random.h') diff --git a/kernel/random.h b/kernel/random.h index 9a44bb3..533209e 100644 --- a/kernel/random.h +++ b/kernel/random.h @@ -6,3 +6,7 @@ void setup_random(void); void add_random_devices(void); void get_random(u8 *buffer, u64 len); void get_fast_insecure_random(u8 *buffer, u64 len); +void random_add_entropy(u8 *buffer, u64 size); +// A interface that is not as expensive to run in comparison to +// random_add_entropy which may take longer. +void random_add_entropy_fast(u8 *buffer, u64 size); -- cgit v1.2.3