mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
Chore: Switch to math/rand/v2
Insignificant as in tests only, but there's no particular reason not to.
This commit is contained in:
committed by
Ralph Slooten
parent
2afc52c6fe
commit
ba00ea5a21
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user