summaryrefslogtreecommitdiff
path: root/userland/libc/sys/random/randomfill.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/sys/random/randomfill.c')
-rw-r--r--userland/libc/sys/random/randomfill.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/sys/random/randomfill.c b/userland/libc/sys/random/randomfill.c
new file mode 100644
index 0000000..18ec04d
--- /dev/null
+++ b/userland/libc/sys/random/randomfill.c
@@ -0,0 +1,6 @@
+#include <sys/random.h>
+#include <syscall.h>
+
+void randomfill(void *buffer, uint32_t size) {
+ syscall(SYS_RANDOMFILL, buffer, size, 0, 0, 0);
+}