]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/math/rand/v2/rand_test.go
math/rand/v2: change Source to use uint64
[gostls13.git] / src / math / rand / v2 / rand_test.go
index ab7fb56796fbe18866296090e815f616b0712de3..63854975758a9e4117b543afc190b579105652cd 100644 (file)
@@ -481,7 +481,7 @@ func testRand() *Rand {
 }
 
 func BenchmarkSourceUint64(b *testing.B) {
-       s := NewSource(1).(Source64)
+       s := NewSource(1)
        var t uint64
        for n := b.N; n > 0; n-- {
                t += s.Uint64()