summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getrandom.c
blob: bb9841463697cc7f8624e7772fc4ee895feacc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * getrandom() for uClibc
 *
 * Copyright (C) 2015 Bernhard Reutner-Fischer
 *
 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <sys/random.h>
#ifdef __NR_getrandom
_syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags)
#endif