Skip to content

Commit

Permalink
Ensure the random symmetric key is always non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 22, 2022
1 parent 8068577 commit c3e30c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/StoragelessTest/Http/SessionMiddlewareTest.php
Expand Up @@ -857,6 +857,6 @@ private static function assertCookieIsSecure(SetCookie $cookie): void

private static function makeRandomSymmetricKey(): Signer\Key\InMemory
{
return Signer\Key\InMemory::plainText(base64_encode(random_bytes(128)));
return Signer\Key\InMemory::plainText('test-key_' . base64_encode(random_bytes(128)));
}
}

0 comments on commit c3e30c9

Please sign in to comment.