vmrand

package
v0.0.0-...-ede35a2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandomDeviceID

func NewRandomDeviceID() (machina.DeviceID, error)

NewRandomDeviceID returns a random device ID.

It uses the crypto/rand reader as a source of randomness.

func NewRandomDeviceIDFromReader

func NewRandomDeviceIDFromReader(r io.Reader) (machina.DeviceID, error)

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

func NewRandomMachineID() (machina.MachineID, error)

NewRandomMachineID returns a random machine ID.

It uses the crypto/rand reader as a source of randomness.

func NewRandomMachineIDFromReader

func NewRandomMachineIDFromReader(r io.Reader) (machina.MachineID, error)

NewRandomMachineIDFromReader returns a random machine ID.

It uses the given reader as a source of randomness.

Types

This section is empty.

Jump to

Keyboard shortcuts

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