We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5582f commit b156632Copy full SHA for b156632
libs/testfactory/txs.go
@@ -9,7 +9,7 @@ import (
9
func GenerateRandomlySizedTxs(count, maxSize int) types.Txs {
10
txs := make(types.Txs, count)
11
for i := 0; i < count; i++ {
12
- size := mrand.Intn(maxSize)
+ size := mrand.Intn(maxSize) //nolint:gosec
13
if size == 0 {
14
size = 1
15
}
@@ -22,7 +22,7 @@ func GenerateRandomTxs(count, size int) types.Txs {
22
23
24
tx := make([]byte, size)
25
- _, err := mrand.Read(tx)
+ _, err := mrand.Read(tx) //nolint:gosec
26
if err != nil {
27
panic(err)
28
0 commit comments