Two separate calls on a handle:
handle.randomize() -- rolls new values into the rand fields from the object's current PRNG state. handle.srandom(seed) -- randomizes nothing. It resets the object's PRNG from `seed`, so every later randomize() follows the same sequence for that seed.
srandom() isn’t an argument to randomize(); call it on the handle first.
Fix the function below.
RequirementsFor make_seeded_item()
One working answer: brokenbench's own fix for this exercise. Try a few runs first.
What changes, against the code you started with:
docker run --pull always --rm -p 127.0.0.1:8787:8787 ghcr.io/adibis/brokenbench-runnerLooking for a runner on this computer…
The first start downloads about 250 MB; after that it starts in seconds and only downloads again when there's an update. Your code goes to the runner on your computer, not to chipdv.io.