From f82fbd0e5a6c020a8b816be4e536c4646a8500e6 Mon Sep 17 00:00:00 2001 From: kplaczek Date: Thu, 19 Apr 2018 23:09:34 +0200 Subject: [PATCH] replaced random function with mt_random --- app/Paper/HtmlToPos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }