Reorder dice_test.go

This commit is contained in:
RPRX authored and GitHub committed 2020-11-14 05:06:07 +00:00
1 parent bdf715afa9
commit 7cc8b75006
1 file changed
+6 -6
+6 -6
View File
@@ -31,18 +31,18 @@ func BenchmarkIntn20(b *testing.B) {
}
}
func BenchmarkInt31(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = uint16(rand.Int31() >> 15)
}
}
func BenchmarkInt63(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = uint16(rand.Int63() >> 47)
}
}
func BenchmarkInt31(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = uint16(rand.Int31() >> 15)
}
}
func BenchmarkIntn(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = uint16(rand.Intn(65536))