go-libp2p-core/test/peer.go
2022-08-19 11:15:54 +03:00

19 lines
422 B
Go

package test
import (
"testing"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/test"
)
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerID instead
func RandPeerID() (peer.ID, error) {
return test.RandPeerID()
}
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerIDFatal instead
func RandPeerIDFatal(t testing.TB) peer.ID {
return test.RandPeerIDFatal(t)
}