Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when changing seed of XORShift, then calling random.randBelow(N) #4

Open
hamoid opened this issue Feb 24, 2023 · 0 comments

Comments

@hamoid
Copy link

hamoid commented Feb 24, 2023

I have a program working fine but adding these two lines produces an infinite loop:

random.seed = 5555;
console.log(random.randBelow(10));

If I remove any of the two lines it works fine.

Replacing XORShift with PCG also solves the issue.

Running on Chromium Version 110.0.5481.177 (Official Build) Arch Linux (64-bit).

Any idea why this could happen? I'll try to create a reproducible program when I get a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant