Skip to content

Commit b156632

Browse files
Manav-Aggarwalnashqueue
authored andcommitted
add //nolint:gosec where math/rand is used
1 parent ee5582f commit b156632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/testfactory/txs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
func GenerateRandomlySizedTxs(count, maxSize int) types.Txs {
1010
txs := make(types.Txs, count)
1111
for i := 0; i < count; i++ {
12-
size := mrand.Intn(maxSize)
12+
size := mrand.Intn(maxSize) //nolint:gosec
1313
if size == 0 {
1414
size = 1
1515
}
@@ -22,7 +22,7 @@ func GenerateRandomTxs(count, size int) types.Txs {
2222
txs := make(types.Txs, count)
2323
for i := 0; i < count; i++ {
2424
tx := make([]byte, size)
25-
_, err := mrand.Read(tx)
25+
_, err := mrand.Read(tx) //nolint:gosec
2626
if err != nil {
2727
panic(err)
2828
}

0 commit comments

Comments
 (0)