diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php index 214fc9130db..d194646140c 100644 --- a/htdocs/opensurvey/fonctions.php +++ b/htdocs/opensurvey/fonctions.php @@ -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)]; }