update docs regarding PickSource for go1.21
mroth opened this issue · 0 comments
mroth commented
As per golang/go@0b9974d, global rand should no longer suffer from lock contention issues, removing the primary use case (imo) for this function. Once this commit is live (in go1.21 I believe) PickSource
will still have value for using alternate randomness sources so should probably not be deprecated(?), but should be likely be unnecessary for high-throughput environments utilizing multiple goroutines.
At that point, the documentation should be adjusted to no longer recommend it for that particular use case.
(Notes on deprecation: https://github.com/golang/go/wiki/Deprecated)