]> tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
CI: Install and use OpenSSL 1.1 on CentOS 7.
[tinc] / src / tincctl.c
index a6b400b905e0c523fc96e26d5457907cb8ae5776..de171e60d43a72ce785de1e027ed82ab01ef5948 100644 (file)
@@ -3374,7 +3374,8 @@ int main(int argc, char *argv[]) {
 
 #endif
 
-       srand(time(NULL));
+       gettimeofday(&now, NULL);
+       srand(now.tv_sec + now.tv_usec);
        crypto_init();
 
        if(optind >= argc) {