From ba00ea5a21e542f7581b6cc4f5de6d176cabc854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 3 Mar 2026 22:26:50 +0200 Subject: [PATCH] Chore: Switch to math/rand/v2 Insignificant as in tests only, but there's no particular reason not to. --- internal/storage/search_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/storage/search_test.go b/internal/storage/search_test.go index 848581d..9487813 100644 --- a/internal/storage/search_test.go +++ b/internal/storage/search_test.go @@ -3,7 +3,7 @@ package storage import ( "bytes" "fmt" - "math/rand" + "math/rand/v2" "testing" "github.com/axllent/mailpit/config" @@ -73,7 +73,7 @@ func TestSearch(t *testing.T) { fmt.Sprintf("subject:\"Subject line %d end\"", i), fmt.Sprintf("\"the email body %d jdsauk dwqmdqw\"", i), } - searchIdx := rand.Intn(len(uniqueSearches)) + searchIdx := rand.IntN(len(uniqueSearches)) search := uniqueSearches[searchIdx]