package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Jan 9, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetRandom reads len bytes of randomness from whatever Reader is passed in, and returns
those bytes as the requested randomness.
type EntropySource interface {
Read(data []byte) (n int, err error)
}
CustomRandomSource is a generic interface that any drand node operator can implement
to provide their own source of randomness in function GetRandom.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.