Commit 546c4e1353 for perl
commit 546c4e13534d42e5680e1c7f2531694d01907490
Author: Craig A. Berry <craigberry@mac.com>
Date: Sat Oct 17 14:57:07 2026 -0500
Define PERL_NO_DEV_RANDOM in vms/vmsish.h
In Perl_seed in util.c, entropy is acquired from /dev/urandom unless
explicitly disabled, and it can't be disabled via a configure-time
option. The fallback code works well enough, but it's expensive
to continually attempt to open a device that never exists, so don't.
A run of the core test suite is about 15% faster after this change.
diff --git a/vms/vmsish.h b/vms/vmsish.h
index 1c112635d8..1e643f730e 100644
--- a/vms/vmsish.h
+++ b/vms/vmsish.h
@@ -783,6 +783,9 @@ long int lroundl(long double __x);
#define NO_ENVIRON_ARRAY
+/* Don't go reading from /dev/urandom */
+#define PERL_NO_DEV_RANDOM
+
/* RMSEXPAND options */
#define PERL_RMSEXPAND_M_VMS 0x02 /* Force output to VMS format */
#define PERL_RMSEXPAND_M_LONG 0x04 /* Expand to long name format */