Replace function rand with mt_rand (prepare php 8)

This commit is contained in:
Laurent Destailleur
2016-03-05 15:01:25 +01:00
parent d8045e33bb
commit d1777a6783
15 changed files with 36 additions and 36 deletions

View File

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