Chore: Switch to math/rand/v2

Insignificant as in tests only, but there's no particular reason not to.
This commit is contained in:
Ville Skyttä
2026-03-03 22:26:50 +02:00
committed by Ralph Slooten
parent 2afc52c6fe
commit ba00ea5a21

View File

@@ -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]