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

fix(cheatcodes): overflow in randomNumber w/range #8361

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jul 4, 2024

randomUint(0, -1) panics with division by zero due to overflow in rand() % (-1 - 0 + 1)

@DaniPopes DaniPopes enabled auto-merge (squash) July 4, 2024 17:29
@DaniPopes DaniPopes merged commit 56dbd20 into master Jul 4, 2024
20 checks passed
@DaniPopes DaniPopes deleted the dani/randomnumber-overflow branch July 4, 2024 23:09
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.

None yet

2 participants