entropy

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandom

func GetRandom(source io.Reader, n uint32) ([]byte, error)

GetRandom reads n bytes of randomness from whatever Reader is passed in, and returns those bytes as the requested randomness.

Types

type ScriptReader added in v0.5.4

type ScriptReader struct {
	Path string
}

ScriptReader hold info for user entropy to be given to the dkg

func NewScriptReader added in v0.5.4

func NewScriptReader(path string) *ScriptReader

NewScriptReader creates a new ScriptReader struct

func (*ScriptReader) GetPath added in v0.5.4

func (r *ScriptReader) GetPath() string

GetPath returns the path of the script

func (*ScriptReader) Read added in v0.5.4

func (r *ScriptReader) Read(p []byte) (n int, err error)

Read calls the executable as many times needed to fill the array p n == len(p) if and only if err == nil

Jump to

Keyboard shortcuts

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