File php8-take-arc4random-buf-path.patch of Package php8

diff --git a/ext/random/csprng.c b/ext/random/csprng.c
index 106ec91affa..aa5db88e3da 100644
--- a/ext/random/csprng.c
+++ b/ext/random/csprng.c
@@ -84,7 +84,7 @@ PHPAPI zend_result php_random_bytes(void *bytes, size_t size, bool should_throw)
 		return FAILURE;
 	}
 #elif HAVE_DECL_ARC4RANDOM_BUF && ((defined(__OpenBSD__) && OpenBSD >= 201405) || (defined(__NetBSD__) && __NetBSD_Version__ >= 700000001 && __NetBSD_Version__ < 1000000000) || \
-  defined(__APPLE__))
+  defined(__APPLE__) || defined(__GLIBC__))
 	/*
 	 * OpenBSD until there is a valid equivalent
 	 * or NetBSD before the 10.x release
openSUSE Build Service is sponsored by