Skip to content

Commit

Permalink
fix: we really don't need to worry about math/rand in this test
Browse files Browse the repository at this point in the history
  • Loading branch information
njvrzm committed Nov 25, 2024
1 parent 6ee7f3e commit 76ad839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func BenchmarkProxyHash(b *testing.B) {
proxy.PluginSecureSocksProxyClientKeyContents: string(kBytes),
}
for i := 0; i < b.N; i++ {
kBytes[88] = b64chars[mathrand.Intn(64)]
kBytes[88] = b64chars[mathrand.Intn(64)] //nolint:gosec
cm[proxy.PluginSecureSocksProxyClientKeyContents] = string(kBytes)
cfg := NewGrafanaCfg(cm)
hash := cfg.ProxyHash()
Expand Down

0 comments on commit 76ad839

Please sign in to comment.