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)
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)
PickSourcewill 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)