Add rand() syscall
This commit is contained in:
8
kernel/syscall/randcrypto.c
Normal file
8
kernel/syscall/randcrypto.c
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user