tetc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SeededRand *rand.Rand

Functions

func NewSeededRand

func NewSeededRand(seed int64) *rand.Rand

func WaitFor

func WaitFor(ctx context.Context, check func() error) error

WaitFor waits for `check` to stop returning an error or for the context to be canceled (whichever comes first).

Types

type LockedRandSource

type LockedRandSource struct {
	// contains filtered or unexported fields
}

func (*LockedRandSource) Int63

func (r *LockedRandSource) Int63() (n int64)

func (*LockedRandSource) Seed

func (r *LockedRandSource) Seed(seed int64)

Jump to

Keyboard shortcuts

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