aboutsummaryrefslogtreecommitdiff
path: root/apps/rand.c
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2025-08-08 19:24:09 +0000
committerEnji Cooper <ngie@FreeBSD.org>2025-08-08 19:33:57 +0000
commitfbc35f82f0eca4571df0d753da74571e01ace763 (patch)
treeb1140e447e6c40c2bc65e7fc3413664fe98c3666 /apps/rand.c
parent1095efe41feed8ea5a6fe5ca123c347ae0914801 (diff)
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/rand.c b/apps/rand.c
index b123a151ea74..da747c1783e4 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1998-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -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) {