We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 762e95b commit 514737bCopy full SHA for 514737b
setup/src/Magento/Setup/Model/DataGenerator.php
@@ -67,12 +67,12 @@ protected function readData()
67
*/
68
public function generate($minAmountOfWords, $maxAmountOfWords, $key = null)
69
{
70
- $numberOfWords = random_int($minAmountOfWords, $maxAmountOfWords);
+ $numberOfWords = mt_rand($minAmountOfWords, $maxAmountOfWords);
71
$result = '';
72
73
if ($key === null || !array_key_exists($key, $this->generatedValues)) {
74
for ($i = 0; $i < $numberOfWords; $i++) {
75
- $result .= ' ' . $this->dictionaryData[random_int(0, count($this->dictionaryData) - 1)];
+ $result .= ' ' . $this->dictionaryData[mt_rand(0, count($this->dictionaryData) - 1)];
76
}
77
$result = trim($result);
78
0 commit comments