Add rand() syscall

This commit is contained in:
2025-10-11 21:54:06 +02:00
parent d92a652024
commit ee93463c64
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#include <stdint.h>
#include <stddef.h>
#include "hal/hal.h"
#include "syscall.h"
int32_t SYSCALL0(sys_rand) {
return hal_randnum();
}