From f4b00c1d93134e1d910db283e3aa50c38ba3978e Mon Sep 17 00:00:00 2001 From: Sukun Date: Tue, 20 Feb 2024 09:14:42 +0530 Subject: [PATCH] use math/rand --- p2p/transport/webrtc/transport_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/p2p/transport/webrtc/transport_test.go b/p2p/transport/webrtc/transport_test.go index 807a498491..74a313ab91 100644 --- a/p2p/transport/webrtc/transport_test.go +++ b/p2p/transport/webrtc/transport_test.go @@ -5,6 +5,7 @@ import ( "encoding/hex" "fmt" "io" + "math/rand" "net" "os" "strings" @@ -13,22 +14,17 @@ import ( "testing" "time" - manet "github.com/multiformats/go-multiaddr/net" - - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - - "golang.org/x/crypto/sha3" - "golang.org/x/exp/rand" - "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" "github.com/libp2p/go-libp2p/core/peer" - ma "github.com/multiformats/go-multiaddr" + manet "github.com/multiformats/go-multiaddr/net" "github.com/multiformats/go-multibase" "github.com/multiformats/go-multihash" + quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "golang.org/x/crypto/sha3" ) func getTransport(t *testing.T, opts ...Option) (*WebRTCTransport, peer.ID) {