Skip to content

Ensure functor configuration is stable

Rosen Matev requested to merge rm-stable-config into master

Iterating over set() is not guaranteed to have a reproducible order, so we need to ensure it by sorting it.

Follow up: I've resorted to sorting using hash() for total ordering and hash is not stable unless PYTHONHASHSEED is set. This is not really what we need but for now the one test in Moore!1037 (merged) that needs reproducibility sets it explicitly.

Needed for Moore!1037 (merged)

Edited by Rosen Matev

Merge request reports

Loading