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: minor range bug in svg generation #6

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

giac-mysten
Copy link
Collaborator

@giac-mysten giac-mysten commented Aug 22, 2024

Fixes a minor bug in the svg generation:
There are only 14 possible number of sides (in the pre-generated svg), but the random generator went up to 15.

This assumes that the generate_u8_in_range function generates numbers extremes included.

@zihehuang
Copy link
Contributor

https://docs.sui.io/references/framework/sui-framework/random#0x2_random_generate_u8_in_range

You should be good. The upper bound is inclusive

@giac-mysten giac-mysten merged commit 1d168f2 into main Aug 22, 2024
7 checks passed
@giac-mysten giac-mysten deleted the gg/fix-range-bug branch August 22, 2024 17: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