2019-05-23 23:07:58 +08:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
|
|
"github.com/libp2p/go-libp2p/core/test"
|
2019-05-23 23:07:58 +08:00
|
|
|
)
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerID instead
|
2019-05-23 23:07:58 +08:00
|
|
|
func RandPeerID() (peer.ID, error) {
|
2022-08-18 23:54:48 +08:00
|
|
|
return test.RandPeerID()
|
2019-05-23 23:07:58 +08:00
|
|
|
}
|
|
|
|
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerIDFatal instead
|
2019-05-23 23:07:58 +08:00
|
|
|
func RandPeerIDFatal(t testing.TB) peer.ID {
|
2022-08-18 23:54:48 +08:00
|
|
|
return test.RandPeerIDFatal(t)
|
2019-05-23 23:07:58 +08:00
|
|
|
}
|