public AlmostEverywhereProtocol(AsyncParty e, ReadOnlyCollection<int> processorIds, SafeRandom randGen, StateKey stateKey) : base(e, processorIds, stateKey) { if (randGen == null) randUtils = new RandomUtils(); else randUtils = new RandomUtils(randGen); var cStr = ConfigurationManager.AppSettings["SampleListSizeFactor"]; C = cStr == null ? 1 : float.Parse(cStr); }
public Party() { Id = idGen++; NetSimulator.RegisterParty(this); SafeRandGen = new SafeRandom(); RegisteredProtocols = new Dictionary<ulong, Protocol>(); ParentProtocols = new Dictionary<ulong, ulong>(); ChildProtocolOutstandingCount = new Dictionary<ulong, int>(); ChildProtocolCompletedMsg = new Dictionary<ulong, SortedDictionary<ulong, object>>(); ChildProtocolSubmissionOrder = new Dictionary<ulong, List<ulong>>(); }
public RandomUtils(SafeRandom randGen) { rand = randGen; }
public RandomUtils(int seed) { rand = new SafeRandom(seed); }
public RandomUtils() { rand = new SafeRandom(); }
public AllToAllGeneration(SyncParty p, IList<int> pIds, BigInteger prime, SafeRandom randGen) : base(p, pIds) { RandGen = randGen; Prime = prime; }