Fix simulation bugs found in review, faster routing, deterministic tests

This commit is contained in:
Frederic Jung 2026-10-23 17:50:31 +02:00
parent 8b64570b8e
commit f51c68a8ac
No known key found for this signature in database
4 changed files with 57 additions and 50 deletions

View file

@ -25,6 +25,8 @@ function load(opts = {}) {
},
});
const ev = (src) => dom.window.eval(src);
// Deterministic by default so a test never passes or fails by luck; pass {seed:false} to opt out.
if (opts.seed !== false) seed(ev, opts.seed || 12345);
return { dom, ev, errors };
}