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 uses of runtime.fastrand with math/rand/v2 once we require go 1.22 #3138

Open
mvdan opened this issue Dec 8, 2023 · 0 comments
Open

Comments

@mvdan
Copy link
Contributor

mvdan commented Dec 8, 2023

//go:linkname Uint32 runtime.fastrand

There's a public replacement in math/rand/v2 starting in the upcoming Go 1.22, and Go 1.24 will remove runtime.fastrand. See https://go-review.googlesource.com/c/go/+/548235.

You might want to wait until Go 1.22 or even 1.23 is out to do this; this issue is mainly a heads up and a reminder :)

@blathers-crl blathers-crl bot added this to Incoming in Storage Dec 8, 2023
@RaduBerinde RaduBerinde changed the title stop linknaming runtime.fastrand replace uses of runtime.fastrand with math/rand/v2 once we require go 1.22 Dec 8, 2023
@RaduBerinde RaduBerinde moved this from Incoming to Backlog in Storage Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Storage
  
Backlog
Development

No branches or pull requests

1 participant