Skip to content

Commit

Permalink
use crypto/rand
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Feb 20, 2024
1 parent 0094df6 commit 2924291
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 @@ -2,6 +2,7 @@ package libp2pwebrtc

import (
"context"
"crypto/rand"
"encoding/hex"
"fmt"
"io"
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 2924291

Please sign in to comment.