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. --- kernel/cpu/syscall.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/cpu') diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c index 7001d63..2a67235 100644 --- a/kernel/cpu/syscall.c +++ b/kernel/cpu/syscall.c @@ -155,6 +155,7 @@ void (*syscall_functions[])() = { (void(*))syscall_sendto, (void(*))syscall_kill, (void(*))syscall_sigaction, (void(*))syscall_chdir, (void(*))syscall_getcwd, (void(*))syscall_isatty, + (void(*))syscall_randomfill, }; void syscall_function_handler(u32 eax, u32 arg1, u32 arg2, u32 arg3, u32 arg4, -- cgit v1.2.3