Remove dropin random() function, as it is not used anymore.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 14 Sep 2009 22:28:20 +0000 (00:28 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 14 Sep 2009 22:28:20 +0000 (00:28 +0200)
lib/dropin.c
lib/dropin.h

index 23d2b13..f6eda42 100644 (file)
@@ -168,15 +168,3 @@ int gettimeofday(struct timeval *tv, void *tz) {
        return 0;
 }
 #endif
-
-#ifndef HAVE_RANDOM
-#include <openssl/rand.h>
-
-long int random(void) {
-       long int x;
-       
-       RAND_pseudo_bytes((unsigned char *)&x, sizeof(x));
-
-       return x;
-}
-#endif
index 4db7d7e..8c2e94a 100644 (file)
@@ -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__ */