summaryrefslogtreecommitdiff
path: root/src/librandom/random_finish.c
blob: bcc42da24db6f8550a7b063713c68a2616bfe28a (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
41
42
43
44
45
/* ISC license. */

#include <skalibs/sysdeps.h>

#ifdef SKALIBS_HASARC4RANDOM

#include <skalibs/random.h>

void random_finish ()
{
}

#else
#ifdef SKALIBS_HASGETRANDOM

#include <skalibs/random.h>

void random_finish ()
{
}

#else
#ifdef SKALIBS_HASDEVURANDOM

#include <skalibs/djbunix.h>
#include <skalibs/random.h>
#include "random-internal.h"

void random_finish ()
{
  fd_close(random_fd) ;
  random_fd = -1 ;
}

#else /* default */

#include <skalibs/random.h>

void random_finish ()
{
}

#endif
#endif
#endif