Handle rand deprecations in go 1.20
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
parent
0eb8fee87e
commit
1a3e73cb84
8 changed files with 12 additions and 10 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue