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
math/rand: add io.Reader interface to type Rand #8330
Comments
👍 (Is +1ing issues the right way to show interest?) |
@adg Will do that in the future. Basically, a deterministic |
This issue is old and low priority, but simple to implement. I'd like to try contributing to Go - is there sufficient interest for me to submit a CR? I don't know whether APIs like |
I think it would be fine to add something to math/rand that implements io.Reader. Probably Rand should get a Read method. I'm not sure how to best implement it--pull seven bytes out of every call to Int63? |
Yep, that's the plan. I'll send a CR, thanks for the speedy reply! |
CL https://golang.org/cl/14522 mentions this issue. |
The text was updated successfully, but these errors were encountered: