Browse Source

Reorder dice_test.go

RPRX 5 years ago
parent
commit
7cc8b75006
1 changed files with 4 additions and 4 deletions
  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++ {
 	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++ {
 	for i := 0; i < b.N; i++ {
-		_ = uint16(rand.Int63() >> 47)
+		_ = uint16(rand.Int31() >> 15)
 	}
 	}
 }
 }