commit | eb952088f0d5da59e569ae2aa33e9b96bc3b586d | [log] [tgz] |
---|---|---|
author | Ulf Möller <ulf@openssl.org> | Thu Jan 13 20:59:17 2000 +0000 |
committer | Ulf Möller <ulf@openssl.org> | Thu Jan 13 20:59:17 2000 +0000 |
tree | 1d722a423148a6b568a1e6d42f01943aed6cfb2a | |
parent | 22e219d90f1ea5d3b2f4abb72c846a436ea33eff [diff] [blame] |
Precautions against using the PRNG uninitialized: RAND_bytes() now returns int (1 = ok, 0 = not seeded). New function RAND_add() is the same as RAND_seed() but takes an estimate of the entropy as an additional argument.
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index b8f6a86..9d85ba4 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c
@@ -110,7 +110,7 @@ int ret= -1; int new_state,state,skip=0;; - RAND_seed(&Time,sizeof(Time)); + RAND_add(&Time,sizeof(Time),0); ERR_clear_error(); clear_sys_error();