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:
Daniel Stenberg 2016-11-11 13:54:16 +01:00
Родитель f9de7c405f
Коммит 942c952db6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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