From 7dacc3e4d3a22f5a02c84325b4dd68d39b4a4076 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 8 Jan 2017 18:05:52 +0300 Subject: [PATCH] LoadSubscribersData micro optimization. --- .../PointToolsBundle/DataFixtures/ORM/LoadSubscribersData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadSubscribersData.php b/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadSubscribersData.php index 0c871e3..e30c37a 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadSubscribersData.php +++ b/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadSubscribersData.php @@ -30,7 +30,7 @@ class LoadSubscribersData extends AbstractFixture implements OrderedFixtureInter if (0 === $key) { $minimum = 2; } else { - $minimum = mt_rand(0, count($users)); + $minimum = random_int(0, count($users)); } foreach ($this->getRandomSubscribers($users, $minimum) as $subscriber) {