Skip to main content

Module context

Module context 

Source
Expand description

Sources of non-determinism the workspace consumes: the wall clock and the random number generator. Both have mockable variants so a deterministic-simulation run replaces them with seeded equivalents and reproduces the same trace bit-for-bit. Anything in the workspace that needs the time of day or a random value reaches for these handles instead of pulling from std.

Modules§

clock
rng

Structs§

RuntimeContext