Freeze "randomness" in tests