Add patch for yar

This commit is contained in:
Shivam Mathur
2024-05-06 10:37:20 +05:30
parent 1ec731d202
commit d4527fa50f

View File

@@ -0,0 +1,8 @@
(Get-Content yar_request.c) | ForEach-Object {
$_ -replace 'if \(!BG\(mt_rand_is_seeded\)\) {',
'#if PHP_VERSION_ID < 80200
if (!BG(mt_rand_is_seeded)) {
#else
if (!RANDOM_G(mt19937_seeded)) {
#endif'
} | Set-Content yar_request.c