random

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addrs

func Addrs(n int) []string

Addrs returns a slice of n random unique addresses.

func Cids

func Cids(n int) []cid.Cid

Cids returns a slice of n random unique CIDs.

func Identity

func Identity() (peer.ID, crypto.PrivKey, crypto.PubKey)

Identity returns a random unique peer ID, private key, and public key.

func Multiaddrs

func Multiaddrs(n int) []multiaddr.Multiaddr

Multiaddrs returns a slice of n random unique Multiaddrs.

func Multihashes

func Multihashes(n int) []multihash.Multihash

Multihashes returns a slice of n random unique Multihashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL