Skip to content

Commit

Permalink
fix Hash.number not returning unique values (#3355)
Browse files Browse the repository at this point in the history
tim-smart authored Jul 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent fc20f73 commit a26ce58
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-papayas-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

fix Hash.number not returning unique values
2 changes: 1 addition & 1 deletion packages/effect/src/Hash.ts
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ export const number = (n: number) => {
while (n > 0xffffffff) {
h ^= n /= 0xffffffff
}
return optimize(n)
return optimize(h)
}

/**

0 comments on commit a26ce58

Please sign in to comment.