From 2924291c5a66fca4d99a1a99964ab20f3e22880b Mon Sep 17 00:00:00 2001 From: Sukun Date: Tue, 20 Feb 2024 09:14:42 +0530 Subject: [PATCH] use crypto/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..3bfcaaf5a7 100644 --- a/p2p/transport/webrtc/transport_test.go +++ b/p2p/transport/webrtc/transport_test.go @@ -2,6 +2,7 @@ package libp2pwebrtc import ( "context" + "crypto/rand" "encoding/hex" "fmt" "io" @@ -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) {