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:
parent
0bc411a64a
commit
e43c60396f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user