Skip to content

Commit

Permalink
tests: downgrade accidental rand/v2 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jul 10, 2024
1 parent a5ad282 commit ab8957d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/consensus_specs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"bytes"
"fmt"
"io"
"math/rand/v2"
"math/rand"
"os"
"path/filepath"
"sync"
Expand Down Expand Up @@ -539,7 +539,7 @@ func fuzzConsensusSpecType[T newableObject[U], U any](f *testing.F, kind string)
// If the testcase was valid, try decoding it into a used object
if valid {
// Pick a random starting object
vSSZ := valids[rand.N(len(valids))]
vSSZ := valids[rand.Intn(len(valids))]

// Try the stream encoder/decoder into a prepped object
obj = T(new(U))
Expand Down

0 comments on commit ab8957d

Please sign in to comment.