summaryrefslogtreecommitdiff
path: root/kernel/random.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-13 16:05:31 +0100
committerAnton Kling <anton@kling.gg>2023-11-13 16:05:31 +0100
commit761f57a1b167abeda40c5cc0fce801a4230f2400 (patch)
tree4ed5bc3c542ca0155f5a21d2d1dae0679db209a4 /kernel/random.h
parente7b5cb7ca649455b926d6e8494c8dd7d6aed9ad0 (diff)
Crypto: Implement fast insecure RNG for overwritting memory areas.
This is mainly done to test for uninitlalized memory and find bugs faster. Therefore it does not need to be cryptographically secure or perfectly uniform. Xoshiro256++ seems like a good fit.
Diffstat (limited to 'kernel/random.h')
-rw-r--r--kernel/random.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/random.h b/kernel/random.h
index c81bfc6..5fe91d0 100644
--- a/kernel/random.h
+++ b/kernel/random.h
@@ -5,3 +5,4 @@
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);