diff --git a/lib/ssluse.c b/lib/ssluse.c index 35b0d382ae8bf08e87f2b7aea547aa2cfe15e44c..22d8bcb13f17a0e08653546031c5076ccc02f45a 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -2786,7 +2786,7 @@ void Curl_ossl_random(struct SessionHandle *data, unsigned char *entropy, size_t length) { Curl_ossl_seed(data); /* Initiate the seed if not already done */ - RAND_bytes(entropy, length); + RAND_bytes(entropy, curlx_uztosi(length)); } void Curl_ossl_md5sum(unsigned char *tmp, /* input */