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

Update random picker to use math/rand's Intn function #893

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

nathanejohnson
Copy link
Member

math/rand's Intn function is 4x faster faster and more portable.

fixes #872

sync rand seed to synd.Once inside of picker.go

math/rand's Intn function is 4x faster faster and more portable.

fixes #872

sync rand seed to synd.Once inside of picker.go
@KTruesdellENA KTruesdellENA merged commit 81bec58 into master Jul 18, 2022
@KTruesdellENA
Copy link
Contributor

looks good

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.

Crash: invalid log msg: http2: panic serving CLIENT_IP:CLIENT_PORT: runtime error: index out of range [-1]
2 participants