Precautions against using the PRNG uninitialized: RAND_bytes() now
[oweals/openssl.git] / ssl / s23_clnt.c
index 299d2ae5d28ef9a29cbf1ec4d568ed11a9a2801b..6db98e92f51c857964292922812f98f64c74240c 100644 (file)
@@ -102,7 +102,7 @@ int ssl23_connect(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();