Skip to content

Commit

Permalink
Remove possibility to fail Aws\Test\Crypto\Polyfill\AesGcmTest::compa…
Browse files Browse the repository at this point in the history
…tTest() because of incorrect generated strings
  • Loading branch information
Zombaya committed May 11, 2022
1 parent 3b4c668 commit 3cf1c24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Crypto/Polyfill/AesGcmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2618,9 +2618,8 @@ public function testCompat()
$this->markTestSkipped('This test can only run on PHP 7.1');
return;
}
$ptLen = \random_int(0, 1024);
$aadLen = \random_int(0, 1024);
$i = 0;
$ptLen = \random_int(1, 1024);
$aadLen = \random_int(1, 1024);
$tag1 = $tag2 = '';
for ($i = 0; $i < 16; ++$i) {
$plaintext = \random_bytes($ptLen + $i);
Expand Down

0 comments on commit 3cf1c24

Please sign in to comment.