Modeling of stochastic magnetic flux loss from the edge of a poloidally diverted tokamak | Synapse