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

backend/http: fix calculation of number of toppings #20

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

roobre
Copy link
Member

@roobre roobre commented Jul 28, 2023

Quick fix for the bug we saw recently on a demo, where the server would panic if the max number of toppings equals the min. Turns out the semantics of rand.Intn are not as obvious as one might think.

@roobre roobre requested a review from dgzlopes July 28, 2023 17:10
@roobre roobre merged commit 84032cf into main Aug 18, 2023
@dgzlopes dgzlopes deleted the fix-toppings branch August 18, 2023 12:42
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