Make maxflow engine behave deterministically.