rand: delete spurious return
The extra loop is not exercised by the tests, apparently, as the goldens
are still OK.
Caught by Elias Naur.
Change-Id: I837dc1b3f7b08ff8304cc9572d78df94eb002e12
Reviewed-on: https://go-review.googlesource.com/61330
Reviewed-by: Elias Naur <elias.naur@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/rand/rand.go b/rand/rand.go
index 47ccd1f..d4001fd 100644
--- a/rand/rand.go
+++ b/rand/rand.go
@@ -139,7 +139,6 @@
// Float64 returns, as a float64, a pseudo-random number in [0.0,1.0).
func (r *Rand) Float64() float64 {
- return float64(r.Uint64n(1<<53)) / (1 << 53)
// There is one bug in the value stream: r.Int63() may be so close
// to 1<<63 that the division rounds up to 1.0, and we've guaranteed
// that the result is always less than 1.0.