Zamiana funkcji ramom funkcjom mt_random #17

Merged
krzysiej merged 1 commits from issue-10 into master 2018-04-19 23:10:16 +02:00

View File

@@ -30,7 +30,7 @@ class HtmlToPos
preg_match_all($re, $html, $matches, PREG_SET_ORDER, 0); preg_match_all($re, $html, $matches, PREG_SET_ORDER, 0);
foreach ($matches as $match) { foreach ($matches as $match) {
$pos = strpos($posText, $match[0]); $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; return $posText;
} }