diff --git a/app/Paper/HtmlToPos.php b/app/Paper/HtmlToPos.php index 9b0392f..4f06534 100644 --- a/app/Paper/HtmlToPos.php +++ b/app/Paper/HtmlToPos.php @@ -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; }