Skip to content

Commit

Permalink
Make Psalm happy
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed May 8, 2024
1 parent 3888bb1 commit 0689b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Blakechain.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function getSummaryHash(bool $rawBinary = false): string
* interned strings from overwriting the hash state and causing
* corruption. */
/** @psalm-suppress InternalMethod */
/** @var positive-int $len */
$len = Util::strlen($this->summaryHashState);
$pattern = \random_bytes($len);
$tmp = $pattern ^ $this->summaryHashState;
Expand Down

0 comments on commit 0689b72

Please sign in to comment.