From 6f1e0ece4e61f30612ed84ca4640635a02892cc8 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 15 Sep 2009 00:28:20 +0200 Subject: [PATCH] Remove dropin random() function, as it is not used anymore. --- lib/dropin.c | 12 ------------ lib/dropin.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/lib/dropin.c b/lib/dropin.c index 23d2b13..f6eda42 100644 --- a/lib/dropin.c +++ b/lib/dropin.c @@ -168,15 +168,3 @@ int gettimeofday(struct timeval *tv, void *tz) { return 0; } #endif - -#ifndef HAVE_RANDOM -#include - -long int random(void) { - long int x; - - RAND_pseudo_bytes((unsigned char *)&x, sizeof(x)); - - return x; -} -#endif diff --git a/lib/dropin.h b/lib/dropin.h index 4db7d7e..8c2e94a 100644 --- a/lib/dropin.h +++ b/lib/dropin.h @@ -43,8 +43,4 @@ extern int vasprintf(char **, const char *, va_list ap); extern int gettimeofday(struct timeval *, void *); #endif -#ifndef HAVE_RANDOM -extern long int random(void); -#endif - #endif /* __DROPIN_H__ */ -- 2.25.1