Skip to content
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

Replace golang.org/x/exp/rand with math/rand/v2 #1025

Open
Juneezee opened this issue Dec 13, 2024 · 1 comment · May be fixed by #1027
Open

Replace golang.org/x/exp/rand with math/rand/v2 #1025

Juneezee opened this issue Dec 13, 2024 · 1 comment · May be fixed by #1027

Comments

@Juneezee
Copy link

We have upgraded our minimum Go version to 1.23 in PR #1016.

Go 1.22 introduces the new math/rand/v2 package 1, which is intended to replace golang.org/x/exp/rand as proposed in golang/go#61716.

Once math/rand/v2 has shipped, we would tag and delete x/exp/rand.

Footnotes

  1. https://go.dev/doc/go1.22#math_rand_v2

@sbinet
Copy link
Member

sbinet commented Dec 20, 2024

we'll need Gonum to update to the new API before Go-HEP can as well.
(we are e.g. using gonum/stat/distuv)

sbinet added a commit to sbinet-hep/hep that referenced this issue Dec 20, 2024
Fixes go-hep#1025

Signed-off-by: Sebastien Binet <binet@cern.ch>
@sbinet sbinet linked a pull request Dec 20, 2024 that will close this issue
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 a pull request may close this issue.

2 participants