CI: Install and use OpenSSL 1.1 on CentOS 7.
[tinc] / src / tincctl.c
index a6b400b..de171e6 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) {