mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Replace function rand with mt_rand (prepare php 8)
This commit is contained in:
@@ -5393,7 +5393,7 @@ function dol_set_focus($selector)
|
||||
function dol_getmypid()
|
||||
{
|
||||
if (! function_exists('getmypid')) {
|
||||
return rand(1,32768);
|
||||
return mt_rand(1,32768);
|
||||
} else {
|
||||
return getmypid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user