aboutsummaryrefslogtreecommitdiff
path: root/ssl/s23_srvr.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-13 20:59:17 +0000
committerUlf Möller <ulf@openssl.org>2000-01-13 20:59:17 +0000
commiteb952088f0d5da59e569ae2aa33e9b96bc3b586d (patch)
tree1d722a423148a6b568a1e6d42f01943aed6cfb2a /ssl/s23_srvr.c
parent22e219d90f1ea5d3b2f4abb72c846a436ea33eff (diff)
downloadopenssl-eb952088f0d5da59e569ae2aa33e9b96bc3b586d.zip
openssl-eb952088f0d5da59e569ae2aa33e9b96bc3b586d.tar.gz
openssl-eb952088f0d5da59e569ae2aa33e9b96bc3b586d.tar.bz2
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.
Diffstat (limited to 'ssl/s23_srvr.c')
-rw-r--r--ssl/s23_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c
index 3aec65d..3717897 100644
--- a/ssl/s23_srvr.c
+++ b/ssl/s23_srvr.c
@@ -101,7 +101,7 @@ int ssl23_accept(SSL *s)
int ret= -1;
int new_state,state;
- RAND_seed(&Time,sizeof(Time));
+ RAND_add(&Time,sizeof(Time),0);
ERR_clear_error();
clear_sys_error();