Documentation
¶
Overview ¶
Package randomness provides "publicly verifiable, unbiased and unpredictable random values" as guaranteed by the drand organization (https://github.com/drand/drand).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconProvider ¶
type BeaconProvider interface {
GetBeacon() []byte
}
BeaconProvider defines an interface to get 32 bytes of randomness (beacon).
func New ¶
func New() (BeaconProvider, error)
New initializes the randomness module. It connects to the drand network, so random value can be obtained with GetBeacon.
Click to show internal directories.
Click to hide internal directories.