Explorar o código

Reorder dice_test.go

RPRX %!s(int64=5) %!d(string=hai) anos
pai
achega
7cc8b75006
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      common/dice/dice_test.go

+ 4 - 4
common/dice/dice_test.go

@@ -31,15 +31,15 @@ func BenchmarkIntn20(b *testing.B) {
 	}
 }
 
-func BenchmarkInt31(b *testing.B) {
+func BenchmarkInt63(b *testing.B) {
 	for i := 0; i < b.N; i++ {
-		_ = uint16(rand.Int31() >> 15)
+		_ = uint16(rand.Int63() >> 47)
 	}
 }
 
-func BenchmarkInt63(b *testing.B) {
+func BenchmarkInt31(b *testing.B) {
 	for i := 0; i < b.N; i++ {
-		_ = uint16(rand.Int63() >> 47)
+		_ = uint16(rand.Int31() >> 15)
 	}
 }