LoadSubscribersData micro optimization.

This commit is contained in:
Alexey Skobkin 2017-01-08 18:05:52 +03:00
parent cfd30a093d
commit 7dacc3e4d3

View file

@ -30,7 +30,7 @@ class LoadSubscribersData extends AbstractFixture implements OrderedFixtureInter
if (0 === $key) { if (0 === $key) {
$minimum = 2; $minimum = 2;
} else { } else {
$minimum = mt_rand(0, count($users)); $minimum = random_int(0, count($users));
} }
foreach ($this->getRandomSubscribers($users, $minimum) as $subscriber) { foreach ($this->getRandomSubscribers($users, $minimum) as $subscriber) {