Replace function rand with mt_rand (prepare php 8)
This commit is contained in:
parent
d1777a6783
commit
c007dcc966
@ -190,7 +190,7 @@ function dol_survey_random($car)
|
||||
{
|
||||
$string = "";
|
||||
$chaine = "abcdefghijklmnopqrstuvwxyz123456789";
|
||||
srand((double) microtime()*1000000);
|
||||
mt_srand((double) microtime()*1000000);
|
||||
for($i=0; $i<$car; $i++) {
|
||||
$string .= $chaine[mt_rand() % strlen($chaine)];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user