瀏覽代碼

Reorder dice_test.go

RPRX 5 年之前
父節點
當前提交
7cc8b75006
共有 1 個文件被更改,包括 4 次插入4 次删除
  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)
 	}
 }