1
4
mirror of https://github.com/yunginnanet/HellPot synced 2024-06-30 01:30:53 +00:00

Security (heffalump): nosec gosec G404 (entropy)

This commit is contained in:
kayos@tcp.direct 2024-06-26 04:30:18 -07:00
parent 0bc411a64a
commit e43c60396f
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

@ -85,7 +85,7 @@ type MarkovMap struct {
// MakeMarkovMap makes an empty MakeMarkov and fills it with r.
func MakeMarkovMap(r io.Reader) MarkovMap {
m := MarkovMap{m: make(map[tokenPair][]string)}
m.r = rand.New(rand.NewSource(entropy.GetOptimizedRand().Int63()))
m.r = rand.New(rand.NewSource(entropy.GetOptimizedRand().Int63())) // #nosec: G404 : speed not security
m.Fill(r)
return m
}