aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/getrandom.c
blob: f180f89fc31035f01feb8b6f81e77f28427b38d8 (plain) (blame)
1
2
3
4
5
6
7
#include <sys/random.h> 
#include "syscall.h" 
 
ssize_t getrandom(void *buf, size_t buflen, unsigned flags) 
{ 
	return syscall(SYS_getrandom, buf, buflen, flags); 
}