Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 514737b

Browse files
committed
MC-19259: Random failure of PAT builds on 2.3.3
1 parent 762e95b commit 514737b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/src/Magento/Setup/Model/DataGenerator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ protected function readData()
6767
*/
6868
public function generate($minAmountOfWords, $maxAmountOfWords, $key = null)
6969
{
70-
$numberOfWords = random_int($minAmountOfWords, $maxAmountOfWords);
70+
$numberOfWords = mt_rand($minAmountOfWords, $maxAmountOfWords);
7171
$result = '';
7272

7373
if ($key === null || !array_key_exists($key, $this->generatedValues)) {
7474
for ($i = 0; $i < $numberOfWords; $i++) {
75-
$result .= ' ' . $this->dictionaryData[random_int(0, count($this->dictionaryData) - 1)];
75+
$result .= ' ' . $this->dictionaryData[mt_rand(0, count($this->dictionaryData) - 1)];
7676
}
7777
$result = trim($result);
7878

0 commit comments

Comments
 (0)