Skip to content

🎧 Your Personal Streaming Service

Fix 32 bits builds

Deluanbcaa180fc7e9
diff --git a/utils/hasher/hasher.go b/utils/hasher/hasher.go
index 1de7ec98e..b72b0409f 100644
--- a/utils/hasher/hasher.go
+++ b/utils/hasher/hasher.go
@@ -2,10 +2,8 @@ package hasher
import (
"hash/maphash"
- "math"
+ "math/rand/v2"
"strconv"
-
- "github.com/navidrome/navidrome/utils/random"
)
var instance = NewHasher()
@@ -45,7 +43,7 @@ func (h *Hasher) Reseed(id string) {
}
func (h *Hasher) reseed(id string) string {
- seed := strconv.FormatInt(random.Int64(math.MaxInt64), 10)
+ seed := strconv.FormatUint(rand.Uint64(), 36)
h.seeds[id] = seed
return seed
}