X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=947e7b3ec6bf0bff00cb882037911e42e768aed4;hb=0fe69908838248c28624beb540257892db6bdcbd;hp=9850eebb20190a64ccc88c4b7c8821dd4b6f700d;hpb=56621be326497d56db0c4c372ae3cc497018cfcf;p=tinc diff --git a/src/tincd.c b/src/tincd.c index 9850eebb..947e7b3e 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -54,6 +54,7 @@ #include "utils.h" #include "xalloc.h" #include "version.h" +#include "random.h" /* 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); + random_init(); crypto_init(); prng_init(); @@ -619,7 +621,7 @@ end: free(priority); - crypto_exit(); + random_exit(); return status; }