diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-14 17:45:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-14 17:45:39 +0000 |
commit | 8ef2202956fb4ca8eb428ac5353600646486f982 (patch) | |
tree | 0c2cdec962663cb973d298d54eb18107372b70d6 /lib/libssl/s3_clnt.c | |
parent | 0341d9541335ffad89035bf5edb6fd1965a72e21 (diff) |
So the OpenSSL codebase does "get the time, add it as a random seed"
in a bunch of places inside the TLS engine, to try to keep entropy high.
I wonder if their moto is "If you can't solve a problem, at least try
to do it badly".
ok miod
Diffstat (limited to 'lib/libssl/s3_clnt.c')
-rw-r--r-- | lib/libssl/s3_clnt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libssl/s3_clnt.c b/lib/libssl/s3_clnt.c index b9ca6b6f9b0..4ad8d3943ef 100644 --- a/lib/libssl/s3_clnt.c +++ b/lib/libssl/s3_clnt.c @@ -186,12 +186,10 @@ int ssl3_connect(SSL *s) { BUF_MEM *buf = NULL; - unsigned long Time = (unsigned long)time(NULL); void (*cb)(const SSL *ssl, int type, int val) = NULL; int ret = -1; int new_state, state, skip = 0; - RAND_add(&Time, sizeof(Time), 0); ERR_clear_error(); errno = 0; |