Skip to content

Commit

Permalink
Silence gosec linter in shcrypto/shuffle.go
Browse files Browse the repository at this point in the history
  • Loading branch information
schmir committed May 14, 2021
1 parent 52abb7a commit 40c1c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shuttermint/shcrypto/shuffle.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Shuffle(txs [][]byte, key *EpochSecretKey) [][]byte {
}
// XXX Using go's stdlib for shuffling may mean the result of this function changes when
// using a different go version
r := rand.New(rand.NewSource(computeSeed(key)))
r := rand.New(rand.NewSource(computeSeed(key))) //nolint:gosec
r.Shuffle(len(shuffledTxs), swap)
return shuffledTxs
}

0 comments on commit 40c1c40

Please sign in to comment.