Skip to content

Commit 581ec93

Browse files
authored
Merge pull request #92 from magento-obsessive-owls/MC-5894
MC-5894: Gift Card Account
2 parents 37b5963 + 0dba0bd commit 581ec93

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Magento2/Sniffs/Security/InsecureFunctionSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
3939
'unserialize' => '\Magento\Framework\Serialize\SerializerInterface::unserialize',
4040
'srand' => null,
4141
'mt_srand'=> null,
42+
'mt_rand' => 'random_int',
4243
];
4344
}

Magento2/Tests/Security/InsecureFunctionUnitTest.inc

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ pcntl_exec('path/goes/here');
2727
srand();
2828

2929
mt_srand();
30+
31+
mt_rand();

Magento2/Tests/Security/InsecureFunctionUnitTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function getWarningList()
4040
25 => 1,
4141
27 => 1,
4242
29 => 1,
43+
31 => 1,
4344
];
4445
}
4546
}

0 commit comments

Comments
 (0)