From 593f3cd3156e0c28cab385e0135fa393ec2830ac Mon Sep 17 00:00:00 2001 From: Alok Date: Wed, 7 Aug 2024 17:36:43 +0530 Subject: [PATCH] fix: lint --- testing/pkg/tests/preconf/preconf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/pkg/tests/preconf/preconf.go b/testing/pkg/tests/preconf/preconf.go index 69245230d..4c08df993 100644 --- a/testing/pkg/tests/preconf/preconf.go +++ b/testing/pkg/tests/preconf/preconf.go @@ -2,6 +2,7 @@ package preconf import ( "context" + crand "crypto/rand" "encoding/hex" "fmt" "io" @@ -459,7 +460,7 @@ func getRandomBid( } else { // get random tx hash randBytes := make([]byte, 32) - rand.Read(randBytes) + _, _ = crand.Read(randBytes) txHashes[0] = strings.TrimPrefix(common.BytesToHash(randBytes).String(), "0x") } }