Skip to content

Commit

Permalink
fix issue #137
Browse files Browse the repository at this point in the history
  • Loading branch information
philihp committed Apr 10, 2024
1 parent 04a5283 commit 3e3a616
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/createPcg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ 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(nextPcg.getOutput(pcg.state))
n = Long.fromValue(pcg.getOutput(nextPcg.state))
nextPcg = nextState(nextPcg)
} while (n.lt(threshold))

Expand Down

0 comments on commit 3e3a616

Please sign in to comment.