summaryrefslogblamecommitdiff
path: root/src/linux/getrandom.c
blob: 6cc6f6b047c18c9c8c564b5ece3f80a2f2b1f65f (plain) (tree)
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_cp(SYS_getrandom, buf, buflen, flags);
}