From c007dcc966a5b8aa3f90662364b88bb4537b4ac1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Mar 2016 15:02:13 +0100 Subject: [PATCH] Replace function rand with mt_rand (prepare php 8) --- htdocs/opensurvey/fonctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]; }