Fix potential crash during failing PMTU discovery.
[tinc] / src / tincd.c
index dff420a..f9e31c1 100644 (file)
@@ -489,11 +489,9 @@ int main(int argc, char **argv) {
        unsetenv("LISTEN_PID");
 #endif
 
-       /* Slllluuuuuuurrrrp! */
-
        gettimeofday(&now, NULL);
-       srand(now.tv_sec + now.tv_usec);
        crypto_init();
+       prng_init();
 
        if(!read_server_config(&config_tree)) {
                return 1;