Skip to content

Commit

Permalink
Reorder dice_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX authored Nov 14, 2020
1 parent bdf715a commit 7cc8b75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/dice/dice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 7cc8b75

Please sign in to comment.