summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getrandom.c
blob: 1db1663b9cb7411f65b565997af7674a9d802278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * 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(ssize_t, getrandom, void *, buf, size_t, buflen, unsigned int, flags)
#endif