Skip to content

Commit

Permalink
Merge pull request #92 from magento-obsessive-owls/MC-5894
Browse files Browse the repository at this point in the history
MC-5894: Gift Card Account
  • Loading branch information
lenaorobei committed May 2, 2019
2 parents 37b5963 + 0dba0bd commit 581ec93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Magento2/Sniffs/Security/InsecureFunctionSniff.php
Expand Up @@ -39,5 +39,6 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
'unserialize' => '\Magento\Framework\Serialize\SerializerInterface::unserialize',
'srand' => null,
'mt_srand'=> null,
'mt_rand' => 'random_int',
];
}
2 changes: 2 additions & 0 deletions Magento2/Tests/Security/InsecureFunctionUnitTest.inc
Expand Up @@ -27,3 +27,5 @@ pcntl_exec('path/goes/here');
srand();

mt_srand();

mt_rand();
1 change: 1 addition & 0 deletions Magento2/Tests/Security/InsecureFunctionUnitTest.php
Expand Up @@ -40,6 +40,7 @@ public function getWarningList()
25 => 1,
27 => 1,
29 => 1,
31 => 1,
];
}
}

0 comments on commit 581ec93

Please sign in to comment.