util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTestRandSeed = 0xCAFE

Variables

This section is empty.

Functions

func TestRandSource

func TestRandSource(t testing.TB) rand.Source

TestRandSource creates a new rand.Source for use in tests and benchmarks. It uses a hash of the environment variable TEST_RAND_SEED as the seed if present, or DefaultTestRandSeed otherwise. If t is non-nil, its Name is hashed and mixed into the seed value, so that different tests will get different random values.

Types

This section is empty.

Directories

Path Synopsis
Package accumulator implements helper types for iterative computations.
Package accumulator implements helper types for iterative computations.
Package broadcast implements concurrency utilities that broadcast to many receivers at once, unlike normal channels where only a single receiver gets each value.
Package broadcast implements concurrency utilities that broadcast to many receivers at once, unlike normal channels where only a single receiver gets each value.

Jump to

Keyboard shortcuts

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