Skip to content

Commit

Permalink
Security (heffalump): nosec gosec G404 (entropy)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Jun 26, 2024
1 parent 0bc411a commit e43c603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heffalump/markov.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e43c603

Please sign in to comment.