Skip to content

update docs regarding PickSource for go1.21 #26

@mroth

Description

@mroth

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions