Skip to content

Commit

Permalink
Suppress shard.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweav committed Jan 15, 2025
1 parent 18632d2 commit 5957020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
// ShuffleShardSeed returns seed for random number generator, computed from provided identifier.
func ShuffleShardSeed(identifier, zone string) int64 {
// Use the identifier to compute an hash we'll use to seed the random.
hasher := md5.New()
hasher := md5.New() //nolint:gosec
hasher.Write(YoloBuf(identifier)) // nolint:errcheck
if zone != "" {
hasher.Write(seedSeparator) // nolint:errcheck
Expand Down

0 comments on commit 5957020

Please sign in to comment.