replaced random function with mt_random

This commit is contained in:
kplaczek
2018-04-19 23:09:34 +02:00
parent 556e7adfab
commit f82fbd0e5a

View File

@@ -30,7 +30,7 @@ class HtmlToPos
preg_match_all($re, $html, $matches, PREG_SET_ORDER, 0);
foreach ($matches as $match) {
$pos = strpos($posText, $match[0]);
$posText = substr_replace($posText, mb_rand($match[1], $match[2]), $pos, strlen($match[0]));
$posText = substr_replace($posText, mt_rand($match[1], $match[2]), $pos, strlen($match[0]));
}
return $posText;
}