From bcaa180fc7e9ba009ac2a0e45593b36b7e3293d1 Mon Sep 17 00:00:00 2001
From: Deluan <deluan@navidrome.org>
Date: Sun, 19 May 2024 13:02:26 -0400
Subject: [PATCH] Fix 32 bits builds

---
 utils/hasher/hasher.go | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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
 }