#include "utils.h"
#include "xalloc.h"
#include "version.h"
+#include "random.h"
/* If nonzero, display usage information and exit. */
static bool show_help = false;
char *umbstr = getenv("TINC_UMBILICAL");
if(umbstr) {
- umbilical = atoi(umbstr);
+ int colorize = 0;
+ sscanf(umbstr, "%d %d", &umbilical, &colorize);
+ umbilical_colorize = colorize;
if(fcntl(umbilical, F_GETFL) < 0) {
umbilical = 0;
#endif
gettimeofday(&now, NULL);
+ random_init();
crypto_init();
prng_init();
free(priority);
- crypto_exit();
+ random_exit();
return status;
}