aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/getrandom.c
blob: 2184fad7100bb9d9567534fc26f6bbf260047a5b (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);
}