random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

type Selector struct{}

Selector implements random selection of n out of m witnesses.

func New

func New() *Selector

New returns new random selector.

func (*Selector) Select

func (s *Selector) Select(witnesses []*proof.Witness, n int) ([]*proof.Witness, error)

Select selects n witnesses out of provided list of witnesses.

Jump to

Keyboard shortcuts

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