projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI: Install and use OpenSSL 1.1 on CentOS 7.
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
a6b400b
..
de171e6
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-3374,7
+3374,8
@@
int main(int argc, char *argv[]) {
#endif
#endif
- srand(time(NULL));
+ gettimeofday(&now, NULL);
+ srand(now.tv_sec + now.tv_usec);
crypto_init();
if(optind >= argc) {
crypto_init();
if(optind >= argc) {