Documentation ¶
Index ¶
- func NewRandomDeviceID() (machina.DeviceID, error)
- func NewRandomDeviceIDFromReader(r io.Reader) (machina.DeviceID, error)
- func NewRandomMAC48() (net.HardwareAddr, error)
- func NewRandomMAC48FromReader(r io.Reader) (net.HardwareAddr, error)
- func NewRandomMachineID() (machina.MachineID, error)
- func NewRandomMachineIDFromReader(r io.Reader) (machina.MachineID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandomDeviceID ¶
NewRandomDeviceID returns a random device ID.
It uses the crypto/rand reader as a source of randomness.
func NewRandomDeviceIDFromReader ¶
NewRandomDeviceIDFromReader returns a random device ID.
It uses the given reader as a source of randomness.
func NewRandomMAC48 ¶
func NewRandomMAC48() (net.HardwareAddr, error)
NewRandomMAC48 returns a random IEEE 802 MAC-48 hardware address with the prefix 52:54:00.
It uses the crypto/rand reader as a source of randomness.
func NewRandomMAC48FromReader ¶
func NewRandomMAC48FromReader(r io.Reader) (net.HardwareAddr, error)
NewRandomMAC48FromReader returns a random IEEE 802 MAC-48 hardware address with the prefix 52:54:00.
It uses the crypto/rand reader as a source of randomness.
func NewRandomMachineID ¶
NewRandomMachineID returns a random machine ID.
It uses the crypto/rand reader as a source of randomness.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.