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

Commit 762e95b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function generate($minAmountOfWords, $maxAmountOfWords, $key = null)
7272

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

0 commit comments

Comments
 (0)