Skip to content

Commit

Permalink
use math/rand
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Feb 20, 2024
1 parent 0094df6 commit f4b00c1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions p2p/transport/webrtc/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"fmt"
"io"
"math/rand"
"net"
"os"
"strings"
Expand All @@ -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) {
Expand Down

0 comments on commit f4b00c1

Please sign in to comment.