• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2015 Linux Test Project
4  */
5 
6 #ifndef LAPI_GETRANDOM_H__
7 #define LAPI_GETRANDOM_H__
8 
9 #include "config.h"
10 
11 #if HAVE_LINUX_RANDOM_H
12 #include <linux/random.h>
13 #endif
14 
15 /*
16  * Flags for getrandom(2)
17  *
18  * GRND_NONBLOCK	Don't block and return EAGAIN instead
19  * GRND_RANDOM		Use the /dev/random pool instead of /dev/urandom
20  */
21 
22 #ifndef GRND_NONBLOCK
23 # define GRND_NONBLOCK	0x0001
24 #endif
25 
26 #ifndef GRND_RANDOM
27 # define GRND_RANDOM	0x0002
28 #endif
29 
30 #endif /* LAPI_GETRANDOM_H__ */
31