summaryrefslogtreecommitdiff
path: root/src/librandom/badrandom_here.c
blob: c7d299237510f4117e9e2f8e61bb44b822244704 (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
38
39
40
/* ISC license. */

/* MT-unsafe */

#include <skalibs/sysdeps.h>
#include <skalibs/config.h>
#include <skalibs/unisurf.h>
#include "random-internal.h"

#ifdef SKALIBS_EGD

# include <skalibs/unirandomegd.h>

# ifdef SKALIBS_HASDEVURANDOM

# include <skalibs/unirandomdev.h>

rrandom badrandom_here = { { { UNIRANDOM_REGISTER_DEVURANDOM(), 3 }, { UNIRANDOM_REGISTER_HASEGD(), 3 }, { UNIRANDOM_REGISTER_SURF(), 3 } }, 3 } ;

# else

rrandom badrandom_here = { { { UNIRANDOM_REGISTER_HASEGD(), 3 }, { UNIRANDOM_REGISTER_SURF(), 3 }, { UNIRANDOM_ZERO, 3 } }, 2 } ;

# endif

#else

# ifdef SKALIBS_HASDEVURANDOM

# include <skalibs/unirandomdev.h>

rrandom badrandom_here = { { { UNIRANDOM_REGISTER_DEVURANDOM(), 3 }, { UNIRANDOM_REGISTER_SURF(), 3 }, { UNIRANDOM_ZERO, 3 } }, 2 } ;

# else

rrandom badrandom_here = { { { UNIRANDOM_REGISTER_SURF(), 3 }, { UNIRANDOM_ZERO, 3 }, { UNIRANDOM_ZERO, 3 } }, 1 } ;

# endif

#endif