Replace function rand with mt_rand (prepare php 8)

This commit is contained in:
Laurent Destailleur 2016-03-05 15:02:13 +01:00
parent d1777a6783
commit c007dcc966

View File

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