From 6757803629574fe46e9047be8567e0c7e0522973 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 23 Nov 2023 17:01:55 +0100 Subject: Kernel/LibC: Add randomfill() syscall. This syscall aims to fill the given buffer with cryptographically secure random data. If the syscall returns and does not cause a page fault it will **always** have filled the buffer with random data and never gives back any error value. --- userland/libc/include/sys/random.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 userland/libc/include/sys/random.h (limited to 'userland/libc/include/sys/random.h') diff --git a/userland/libc/include/sys/random.h b/userland/libc/include/sys/random.h new file mode 100644 index 0000000..0be3dd8 --- /dev/null +++ b/userland/libc/include/sys/random.h @@ -0,0 +1,3 @@ +#include + +void randomfill(void *buffer, uint32_t size); -- cgit v1.2.3