OxL Reference

method sim.traceHash

Hash of everything that happened in the simulated world so far: equal seeds give equal hashes.

Example:

oxl✓ checked in CI
use std.test { sim }

test sim "traces repeat" seeds 7..=7 {
  sim.note("start")
  assert sim.traceHash() != 0
}
pub(api) static fn traceHash() -> u64

Since. 1.0.0-beta

Returns

u64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/test/test.oxl:409

See also