projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor crypto RNG; add getrandom() support
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
9850eeb
..
947e7b3
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-54,6
+54,7
@@
#include "utils.h"
#include "xalloc.h"
#include "version.h"
#include "utils.h"
#include "xalloc.h"
#include "version.h"
+#include "random.h"
/* If nonzero, display usage information and exit. */
static bool show_help = false;
/* If nonzero, display usage information and exit. */
static bool show_help = false;
@@
-487,6
+488,7
@@
int main(int argc, char **argv) {
#endif
gettimeofday(&now, NULL);
#endif
gettimeofday(&now, NULL);
+ random_init();
crypto_init();
prng_init();
crypto_init();
prng_init();
@@
-619,7
+621,7
@@
end:
free(priority);
free(priority);
-
crypto
_exit();
+
random
_exit();
return status;
}
return status;
}