Skip to content

Commit

Permalink
prompt: Fix staticcheck lint issue
Browse files Browse the repository at this point in the history
fbshipit-source-id: 84e7177
  • Loading branch information
joeycumines committed Aug 13, 2023
1 parent c8289ba commit 2cc56e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bisect/bisect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ func TestBisectRight(t *testing.T) {
}

func BenchmarkRight(b *testing.B) {
rand.Seed(0)
r := rand.New(rand.NewSource(0))

for _, l := range []int{10, 1e2, 1e3, 1e4} {
x := rand.Perm(l)
insertion := rand.Int()
x := r.Perm(l)
insertion := r.Int()

b.Run(fmt.Sprintf("arrayLength=%d", l), func(b *testing.B) {
b.ResetTimer()
Expand Down

0 comments on commit 2cc56e1

Please sign in to comment.