Skip to content

Conversation

@YichiZhang0613
Copy link
Contributor

In NumcraftRust/src/eadk/random.rs, if start == stop, random_u32 %= stop - start; will panic because it attempts to calculate the remainder with a divisor of zero. It should be changed into assert!(start < stop, "Start must be smaller than stop");

@yannis300307
Copy link
Owner

Hello, thanks for the PR!

@yannis300307 yannis300307 merged commit 57307d8 into yannis300307:main Nov 28, 2025
1 check passed
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