From 305fc65a1f7645035e438c01ba715beb814f2e4f Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Wed, 22 Mar 2023 09:24:43 +0900 Subject: [PATCH] test(rtr): remove deprecated function rand.Seed() See https://pkg.go.dev/math/rand@go1.20#Seed --- pkg/packet/rtr/rtr_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/packet/rtr/rtr_test.go b/pkg/packet/rtr/rtr_test.go index 08f930b21..c7772d7ac 100644 --- a/pkg/packet/rtr/rtr_test.go +++ b/pkg/packet/rtr/rtr_test.go @@ -38,7 +38,6 @@ func verifyRTRMessage(t *testing.T, m1 RTRMessage) { } func randUint32() uint32 { - rand.Seed(time.Now().UnixNano()) return rand.Uint32() }