ports/net/pecl-radius/files/patch-radlib.c
Vyacheslav Pikalov f6ff42f176
net/pecl-radius: Fix runtime
- Bump PORTREVISION for package change

PR:		284114
Reference:	https://www.php.net/manual/en/function.mt-srand.php
2025-05-18 11:35:27 +08:00

11 lines
343 B
C

--- 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();