Skip to content

Commit

Permalink
fix: lower hashing constant to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed May 2, 2023
1 parent 2a7f318 commit b1dcd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collections/Vector.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getHash(): int
{
$hash = 1;
foreach ($this->data as $item) {
$hash *= 23;
$hash *= 13;
$hash ^= static::hash($item);
}
return $hash;
Expand Down

0 comments on commit b1dcd0a

Please sign in to comment.