diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 79a61e49d..a6709d933 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -237,11 +237,9 @@ static int ossl_seed(struct SessionHandle *data) /* If we get here, it means we need to seed the PRNG using a "silly" approach! */ do { - int len; unsigned char randb[64]; - Curl_ossl_random(data, randb, sizeof(randb)); - - len = sizeof(randb); + int len = sizeof(randb); + RAND_bytes(randb, len); RAND_add(randb, len, (len >> 1)); } while(!RAND_status()); |