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

Use seed in randomised tests #6287

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Use seed in randomised tests #6287

merged 3 commits into from
Jul 19, 2024

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Jul 17, 2024

Summary

Unfortunately it is impossible to seed Math.random function, so this code includes custom implementation of pseudorandom number generator.

https://stackoverflow.com/questions/521295/seeding-the-random-number-generator-in-javascript/47593316#47593316

Test plan

@Latropos Latropos marked this pull request as ready for review July 18, 2024 08:30
@Latropos Latropos added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit 0d551fb Jul 19, 2024
5 checks passed
@Latropos Latropos deleted the acynk/seed-random branch July 19, 2024 10:11
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

Successfully merging this pull request may close these issues.

2 participants