Skip to content

Commit

Permalink
fix issue #137 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
philihp authored Apr 10, 2024
1 parent 57460d2 commit 6835f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createPcg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const randomInt = curry((min: number, max: number, pcg: PCGState): [numbe
let n: Long
let nextPcg = pcg
do {
n = Long.fromValue(nextPcg.getOutput(pcg.state))
n = Long.fromValue(pcg.getOutput(nextPcg.state))
nextPcg = nextState(nextPcg)
} while (n.lt(threshold))

Expand Down

0 comments on commit 6835f04

Please sign in to comment.