Skip to content

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

Merged
gammazero merged 1 commit intomasterfrom
fix-race
Feb 28, 2025
Merged

Fix race condition due to concurrent use of rand source#125
gammazero merged 1 commit intomasterfrom
fix-race

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