Skip to content

Fix race condition due to concurrent use of rand source #125

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

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

gammazero
Copy link
Contributor

A global rand.Source was being used concurrently, which is not safe.

As stated here:

this source is not safe for concurrent use by multiple goroutines.

A global rand.Source was being used concurrently, which is not safe.
@gammazero gammazero merged commit f9ae204 into master Feb 28, 2025
7 checks passed
@gammazero gammazero deleted the fix-race branch March 1, 2025 05:30
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.

1 participant