summaryrefslogtreecommitdiff
path: root/net/pecl-radius/files/patch-radlib.c
diff options
context:
space:
mode:
authorVyacheslav Pikalov <ssot@mail.ru>2025-05-18 11:25:07 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-05-18 11:35:27 +0800
commitf6ff42f176feccbb52ac4345d606e27e9ae79027 (patch)
tree9ddb7bbaafcb516b15a43adead2d5bdedd3e965b /net/pecl-radius/files/patch-radlib.c
parentwww/py-limits: Allow build with py-packaging 25.0+ (diff)
net/pecl-radius: Fix runtime
- Bump PORTREVISION for package change PR: 284114 Reference: https://www.php.net/manual/en/function.mt-srand.php
Diffstat (limited to 'net/pecl-radius/files/patch-radlib.c')
-rw-r--r--net/pecl-radius/files/patch-radlib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/pecl-radius/files/patch-radlib.c b/net/pecl-radius/files/patch-radlib.c
new file mode 100644
index 000000000000..ce4e016181dd
--- /dev/null
+++ b/net/pecl-radius/files/patch-radlib.c
@@ -0,0 +1,10 @@
+--- radlib.c.orig 2025-05-06 17:27:50 UTC
++++ radlib.c
+@@ -748,7 +748,6 @@ rad_auth_open(void)
+
+ h = (struct rad_handle *)malloc(sizeof(struct rad_handle));
+ if (h != NULL) {
+- php_srand(time(NULL) * getpid() * (unsigned long) (php_combined_lcg() * 10000.0));
+ h->fd = -1;
+ h->num_servers = 0;
+ h->ident = (zend_long) php_mt_rand();