mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
openssl: avoid unnecessary seeding if already done
1.1.0+ does more of this by itself so we can avoid extra processing this way.
This commit is contained in:
parent
f9de7c405f
commit
942c952db6
@ -188,8 +188,8 @@ static int ossl_seed(struct Curl_easy *data)
|
||||
char *buf = data->state.buffer; /* point to the big buffer */
|
||||
int nread=0;
|
||||
|
||||
/* Q: should we add support for a random file name as a libcurl option?
|
||||
A: Yes, it is here */
|
||||
if(rand_enough())
|
||||
return 1;
|
||||
|
||||
#ifndef RANDOM_FILE
|
||||
/* if RANDOM_FILE isn't defined, we only perform this if an option tells
|
||||
|
Loading…
Reference in New Issue
Block a user