public static void RunUnboundLocked(Action action) { lock (rndLock) { Rng.Unbound(); action(); Rng.Deterministic(); } }
private LockedUnboundRng(int seed) { semaphore.Wait(); Rng.Unbound(seed); }