mirror of
https://github.com/distribution/distribution.git
synced 2025-09-12 21:28:59 +00:00
Handle rand deprecations in go 1.20
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user