blob: ab263c75031e58a07d5d9f5e16cf0f5049964220 (
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
|
/* ISC license. */
#include <skalibs/config.h>
#include <skalibs/unirandomegd.h>
#include <skalibs/unirandom.h>
#ifdef SKALIBS_EGD
#include "random-internal.h"
int unihasegd_init (union unirandominfo *u)
{
return unirandomegd_sinit(u, SKALIBS_EGD) ;
}
int unirandom_register_hasegd (unirandom *u)
{
unirandom_register(u, &unihasegd_init, &unirandomegd_finish, &unirandomegd_readb, &unirandomegd_readnb) ;
return 1 ;
}
#else
#include <errno.h>
int unihasegd_init (union unirandominfo *u)
{
(void)u ;
return (errno = ENOSYS, 0) ;
}
int unirandom_register_hasegd (unirandom *u)
{
(void)u ;
return (errno = ENOSYS, 0) ;
}
#endif
|