forked from ZwiiCMS-Team/ZwiiCMS
microtime return float
This commit is contained in:
parent
bfd48adcf9
commit
43ac79ddd4
@ -78,9 +78,9 @@ class template
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Tirage des nombres
|
// Tirage des nombres
|
||||||
mt_srand((float) microtime() * 1000000);
|
mt_srand( microtime(true) * 1000000);
|
||||||
$firstNumber = mt_rand(1, $limit);
|
$firstNumber = mt_rand(1, $limit);
|
||||||
mt_srand((float) microtime() * 1000000);
|
mt_srand( microtime(true) * 1000000);
|
||||||
$secondNumber = mt_rand(1, $limit);
|
$secondNumber = mt_rand(1, $limit);
|
||||||
|
|
||||||
// Permutation si addition ou soustraction
|
// Permutation si addition ou soustraction
|
||||||
|
Loading…
Reference in New Issue
Block a user