diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc40f5ad7d..a1f93e9bd2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v3 with: - version: latest + version: v1.49.0 args: --timeout=3m -E whitespace diff --git a/txpool/event_subscription_test.go b/txpool/event_subscription_test.go index 3bc839ee4f..ac52a9aeb0 100644 --- a/txpool/event_subscription_test.go +++ b/txpool/event_subscription_test.go @@ -2,7 +2,7 @@ package txpool import ( "context" - "crypto/rand" + cryptoRand "crypto/rand" "math/big" mathRand "math/rand" "sync" @@ -42,7 +42,7 @@ func shuffleTxPoolEvents( randomEventType := func(supported bool) proto.EventType { for { - randNum, _ := rand.Int(rand.Reader, big.NewInt(int64(len(supportedTypes)))) + randNum, _ := cryptoRand.Int(cryptoRand.Reader, big.NewInt(int64(len(supportedTypes)))) randType := allEvents[randNum.Int64()] if tempSubscription.eventSupported(randType) == supported {