From: Daniel Van Geest Date: Wed, 23 Jul 2025 08:30:57 +0000 (+0200) Subject: openssl rand command should use the loaded library context X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7d5398aa1349cc575a5b80e0d6eb28e61cb4bfa;p=thirdparty%2Fopenssl.git openssl rand command should use the loaded library context Reviewed-by: Dmitry Belyavskiy Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28075) --- diff --git a/apps/rand.c b/apps/rand.c index b123a151ea7..8ee97581272 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -199,7 +199,7 @@ int rand_main(int argc, char **argv) int chunk; chunk = scaled_num > buflen ? (int)buflen : (int)scaled_num; - r = RAND_bytes(buf, chunk); + r = RAND_bytes_ex(app_get0_libctx(), buf, chunk, 0); if (r <= 0) goto end; if (format != FORMAT_TEXT) {