Help us shape the future of Go! Take the 2026 Go Developer Survey

randomness

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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