Upgrade to using math/rand/v2 to get perf enhancements
Follow up from: https://github.com/grpc/grpc-go/pull/7283#issuecomment-2142662503
Go1.22 introduced a new rand package with a lot of improvements. See: go.dev/blog/randv2.
We would love to update our usages of math/rand once gRPC-go requires Go 1.22 or later.
@arvindbr8 I would like to be assigned this task.
@silaselisha assigned it to you
This is blocked until we bump the minimum Go version supported to 1.22 in our go.mod.
Is switching to randv2 still blocked?
I see that we bumped up our minimum supported Go version to 1.22.7 in https://github.com/grpc/grpc-go/pull/7624. So, this should be unblocked.
@marcoferrer : Would you be interested in making this change? We'll be happy to review. Thanks.
@easwars Sounds good. PR opened.