math/rand: document whether NewSource always implements Source64 #44488
Labels
Milestone
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: