Versions in this module Expand all Collapse all v0 v0.2.0 Nov 4, 2026 v0.1.0 Aug 26, 2026 Changes in this version + var Epoch = time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC) + func Since(c Clock, t time.Time) time.Duration + type Buggifier struct + func DisabledBuggifier() *Buggifier + func NewBuggifier(seed uint64, enabled bool) *Buggifier + func (b *Buggifier) Buggify(site string) bool + func (b *Buggifier) BuggifyWithProb(site string, prob float64) bool + func (b *Buggifier) Coin(site string) bool + func (b *Buggifier) Enabled() bool + func (b *Buggifier) Fired() int + func (b *Buggifier) SetProbabilities(activation, fire float64) + type Clock interface + Now func() time.Time + type CryptoRandomness struct + func (CryptoRandomness) Read(p []byte) (int, error) + type Env struct + Buggify *Buggifier + Clock Clock + Random Randomness + func NewSim(seed uint64) *Env + func (e *Env) Coin(site string) bool + func (e *Env) Fault(site string) bool + func (e *Env) Now() time.Time + func (e *Env) Read(p []byte) (int, error) + func (e *Env) Since(t time.Time) time.Duration + type Randomness interface + Read func(p []byte) (int, error) + type RealClock struct + func (RealClock) Now() time.Time + type SeededRandomness struct + func NewSeededRandomness(seed uint64) *SeededRandomness + func (s *SeededRandomness) Read(p []byte) (int, error) + type SimClock struct + func NewSimClock(start time.Time) *SimClock + func (c *SimClock) Advance(d time.Duration) time.Time + func (c *SimClock) Now() time.Time + func (c *SimClock) Set(t time.Time)