aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ssluse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 35b0d382a..22d8bcb13 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 */