Fix G404 gosec lint error

This commit is contained in:
Deluan
2024-05-19 21:55:19 -04:00
parent bcaa180fc7
commit b2ecc1d16f
6 changed files with 20 additions and 8 deletions
+3 -2
View File
@@ -2,8 +2,9 @@ package hasher
import (
"hash/maphash"
"math/rand/v2"
"strconv"
"github.com/navidrome/navidrome/utils/random"
)
var instance = NewHasher()
@@ -43,7 +44,7 @@ func (h *Hasher) Reseed(id string) {
}
func (h *Hasher) reseed(id string) string {
seed := strconv.FormatUint(rand.Uint64(), 36)
seed := strconv.FormatUint(random.Uint64(), 36)
h.seeds[id] = seed
return seed
}