diff options
author | Anton Kling <anton@kling.gg> | 2023-11-23 17:01:55 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-23 17:01:55 +0100 |
commit | 6757803629574fe46e9047be8567e0c7e0522973 (patch) | |
tree | cf31247efa27997b0b43bfed559ffbb42bfb8f3e /kernel/cpu | |
parent | b8da260dd01175529feb57d5a73570f469decb08 (diff) |
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.
Diffstat (limited to 'kernel/cpu')
-rw-r--r-- | kernel/cpu/syscall.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |