projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa9bedd
)
Remove dropin random() function, as it is not used anymore.
author
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 14 Sep 2009 22:28:20 +0000
(
00:28
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 14 Sep 2009 22:28:20 +0000
(
00:28
+0200)
lib/dropin.c
patch
|
blob
|
history
lib/dropin.h
patch
|
blob
|
history
diff --git
a/lib/dropin.c
b/lib/dropin.c
index 23d2b136f304f798ffe9536da0fdee66d23afaaa..f6eda42a5ebd0797dfac120bc9c5c5352212d6f2 100644
(file)
--- 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 <openssl/rand.h>
-
-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 4db7d7e07a0a586c4bce3cb6fc880a0b3afa2b0f..8c2e94a36d05e6e9c3e9ccae8f2c7c682e9a8f87 100644
(file)
--- 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__ */