summaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/helper.c b/helper.c
index c9aa51e4f..6959535d2 100644
--- a/helper.c
+++ b/helper.c
@@ -45,18 +45,15 @@
45 45
46#include "rc4.h" 46#include "rc4.h"
47#include "xmalloc.h" 47#include "xmalloc.h"
48 48#include "config.h"
49#include "helper.h" 49#include "helper.h"
50 50
51#ifndef HAVE_ARC4RANDOM
52
51void get_random_bytes(unsigned char *buf, int len); 53void get_random_bytes(unsigned char *buf, int len);
52 54
53static rc4_t *rc4 = NULL; 55static rc4_t *rc4 = NULL;
54 56
55void setproctitle(const char *fmt, ...)
56{
57 /* FIXME */
58}
59
60unsigned int arc4random(void) 57unsigned int arc4random(void)
61{ 58{
62 unsigned int r; 59 unsigned int r;
@@ -105,4 +102,11 @@ void get_random_bytes(unsigned char *buf, int len)
105 exit(1); 102 exit(1);
106 } 103 }
107} 104}
105#endif /* !HAVE_ARC4RANDOM */
108 106
107#ifndef HAVE_SETPROCTITLE
108void setproctitle(const char *fmt, ...)
109{
110 /* FIXME */
111}
112#endif /* !HAVE_SETPROCTITLE */