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:
Родитель
f9de7c405f
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче