Back to

Package detrand

Latest Go to latest

The latest major version is .

Published: Jun 22, 2020 | License: BSD-3-Clause | Module:


Package detrand provides deterministically random functionality.

The pseudo-randomness of these functions is seeded by the program binary itself and guarantees that the output does not change within a program, while ensuring that the output is unstable across different builds.


func Bool

func Bool() bool

Bool returns a deterministically random boolean.

func Disable

func Disable()

Disable disables detrand such that all functions returns the zero value. This function is not concurrent-safe and must be called during program init.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier