Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
math/rand: example_test should show examples with the correct Uint32 method #9429
In math/rand's example_test.go, line 75: http://golang.org/src/math/rand/example_test.go#L75.
I believe the intention was to show with r.Uint32() rather than the written r.Int63(). Fortunately, the underlying implementation for both methods are the same, so this seems to be a trivial one-line fix.
I'll be happy to make the change if the issue is confirmed.