summaryrefslogtreecommitdiff
path: root/modules/random
blob: a6ccbb777dcb2e57c7f9f32d1526edc423518cbb (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
Description:
global random number generator

Files:
lib/random.c
m4/random.m4

Depends-on:
libc-config     [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]
stdlib
stdint          [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]
random_r        [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]

configure.ac:
gl_FUNC_RANDOM
gl_CONDITIONAL([GL_COND_OBJ_RANDOM],
               [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1])
AM_COND_IF([GL_COND_OBJ_RANDOM], [
  gl_PREREQ_RANDOM
])
gl_STDLIB_MODULE_INDICATOR([random])

Makefile.am:
if GL_COND_OBJ_RANDOM
lib_SOURCES += random.c
endif

Include:
<stdlib.h>

License:
LGPL

Maintainer:
glibc