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

Commit bb6bac3

Browse files
committed
MSI: Update Magento 2 core to support MSI
1 parent 7fc59e7 commit bb6bac3

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

setup/src/Magento/Setup/Model/FixtureGenerator/BundleProductTemplateGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ private function getProductTemplate($attributeSet)
8282
$bundleOptions = $this->fixture['_bundle_options'];
8383
$bundleProductsPerOption = $this->fixture['_bundle_products_per_option'];
8484
$bundleVariationSkuPattern = $this->fixture['_bundle_variation_sku_pattern'];
85-
mt_srand(mt_rand() + (100000000 * (float)microtime()) % PHP_INT_MAX);
86-
$productRandomizerNumber = crc32(mt_rand(1, PHP_INT_MAX));
85+
$productRandomizerNumber = crc32(random_int(1, PHP_INT_MAX));
8786
$bundleProduct = $this->productFactory->create([
8887
'data' => [
8988
'attribute_set_id' => $attributeSet,

setup/src/Magento/Setup/Model/FixtureGenerator/ConfigurableProductTemplateGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ public function generateEntity()
7878
*/
7979
private function getProductTemplate($attributeSet)
8080
{
81-
mt_srand(mt_rand() + (100000000 * (float)microtime()) % PHP_INT_MAX);
82-
$productRandomizerNumber = crc32(mt_rand(1, PHP_INT_MAX));
81+
$productRandomizerNumber = crc32(random_int(1, PHP_INT_MAX));
8382
$product = $this->productFactory->create([
8483
'data' => [
8584
'attribute_set_id' => $attributeSet,

setup/src/Magento/Setup/Model/FixtureGenerator/SimpleProductTemplateGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public function generateEntity()
6262
*/
6363
private function getProductTemplate($attributeSet, $additionalAttributes = [])
6464
{
65-
mt_srand(mt_rand() + (100000000 * (float)microtime()) % PHP_INT_MAX);
66-
$productRandomizerNumber = crc32(mt_rand(1, PHP_INT_MAX));
65+
$productRandomizerNumber = crc32(random_int(1, PHP_INT_MAX));
6766
$product = $this->productFactory->create([
6867
'data' => [
6968
'attribute_set_id' => $attributeSet,

0 commit comments

Comments
 (0)