aboutsummaryrefslogtreecommitdiff
path: root/src/ptunnel.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-12-26 20:32:56 +0100
committerToni Uhlig <matzeton@googlemail.com>2018-12-26 20:42:54 +0100
commit5236e631bb3c6f3a31c920709e3fe6c5cd579c14 (patch)
tree0e9e149a185fb1d9526613f57e3e44004b01db2c /src/ptunnel.c
parent4b33cf8cee7b048ebccfe83b27ce00e8bdd70a50 (diff)
autoconf check for srandom()/random() or fallback to less secure srand()/rand()
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/ptunnel.c')
-rw-r--r--src/ptunnel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 1944041..52661ae 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -126,10 +126,6 @@ int main(int argc, char *argv[]) {
}
#endif /* WIN32 */
- /* Seed random generator; it'll be used in combination with a timestamp
- * when generating authentication challenges.
- */
- srand(time(0));
memset(opts.password_digest, 0, kMD5_digest_size);
/* The seq_expiry_tbl is used to prevent the remote ends from prematurely