-
Notifications
You must be signed in to change notification settings - Fork 18k
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: document whether NewSource always implements Source64 #44488
Comments
I looked into the source code of rng.go and since Int63() calls Uint64(), NewSource is always returning a Source64 implementation.
|
I believe the snippet you actually wanted to reference is: Lines 237 to 252 in 87e984a
I'm aware that it current returns something that implements |
I think we should document it. |
Change https://golang.org/cl/352689 mentions this issue: |
Change https://go.dev/cl/425974 mentions this issue: |
The concrete type returned by
NewSource
happens to implementSource64
. However, this is not documented in any way. Is this always guaranteed?The text was updated successfully, but these errors were encountered: