summaryrefslogtreecommitdiff
path: root/modules/getrandom
blob: a8b14781d00bcb7fae01534e97376700af554fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description:
Fill buffer with random bytes.

Files:
lib/getrandom.c
m4/getrandom.m4

Depends-on:
sys_random
fcntl-h             [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
minmax              [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
stdbool             [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
open                [case $host_os in mingw*) false;; *) test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1;; esac]

configure.ac:
AC_REQUIRE([AC_CANONICAL_HOST])
gl_FUNC_GETRANDOM
gl_CONDITIONAL([GL_COND_OBJ_GETRANDOM],
               [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1])
gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])

Makefile.am:
if GL_COND_OBJ_GETRANDOM
lib_SOURCES += getrandom.c
endif

Include:
<sys/random.h>

Link:
$(GETRANDOM_LIB)

License:
LGPLv2+

Maintainer:
all