Handle rand deprecations in go 1.20

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
James Hewitt
2023-08-27 11:06:16 +01:00
parent 0eb8fee87e
commit 1a3e73cb84
8 changed files with 12 additions and 10 deletions

View File

@@ -9,7 +9,6 @@ import (
"reflect"
"strings"
"testing"
"time"
"github.com/gorilla/mux"
)
@@ -221,7 +220,6 @@ func TestRouterWithBadCharacters(t *testing.T) {
// with random UTF8 characters not in the 128 bit ASCII range.
// These are not valid characters for the router and we expect
// 404s on every test.
rand.Seed(time.Now().UTC().UnixNano())
tests := make([]routeTestCase, 1000)
for idx := range tests {
tests[idx] = routeTestCase{