Skip to main content

✅ Deterministic same seed

CategoryAbility
StatusPassing
Testtests/test_rng.py::test_deterministic_same_seed

Two DeterministicRNG instances seeded with the same value

Preconditions

  • rng_a = DeterministicRNG(seed=42)

  • rng_b = DeterministicRNG(seed=42)

Action

  • Call roll_d6() 10 times on each instance.

Expected Postconditions

  • All 10 values from rng_a equal the corresponding values from rng_b.

Assertions

assert rolls_a == rolls_b