1 /* Copyright (C) 2015 Bernhard Reutner-Fischer
2 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
6 #define _SYS_RANDOM_H 1
11 #if defined __UCLIBC_LINUX_SPECIFIC__ && defined __USE_GNU
12 # if 0 /*def __ASSUME_GETRANDOM_SYSCALL */
13 # include <linux/random.h>
18 * Flags for getrandom(2)
20 * GRND_NONBLOCK Don't block and return EAGAIN instead
21 * GRND_RANDOM Use the /dev/random pool instead of /dev/urandom
23 # define GRND_NONBLOCK 0x0001
24 # define GRND_RANDOM 0x0002
26 /* FIXME: aren't there a couple of __restrict and const missing ? */
27 extern int getrandom(void *__buf, size_t count, unsigned int flags)
28 __nonnull ((1)) __wur;
33 #endif /* sys/random.h */