add a specific configure check for sys/random.h (closes #28932)
diff --git a/pyconfig.h.in b/pyconfig.h.in
index bf4ba5b..39ccf53 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -1005,6 +1005,9 @@
 /* Define to 1 if you have the <sys/poll.h> header file. */
 #undef HAVE_SYS_POLL_H
 
+/* Define to 1 if you have the <sys/random.h> header file. */
+#undef HAVE_SYS_RANDOM_H
+
 /* Define to 1 if you have the <sys/resource.h> header file. */
 #undef HAVE_SYS_RESOURCE_H