コード例 #1
0
 public SolovayStrassenTest(int id, GetNextNumber GetNext, ChangeCurrentNumber OnNumFound)
 {
     GetNext(ref _Current);
     _GetNext    = GetNext;
     _OnNumFound = OnNumFound;
     Id          = id;
     th          = new Thread(ThreadTest);
     th.Priority = ThreadPriority.BelowNormal;
 }
コード例 #2
0
ファイル: FermatsTest.cs プロジェクト: Stonefacer/RSA-Tool
 private FermatsTest(BigInteger Cur, BigInteger MaxA, ChangeCurrentNumber OnFound) : this(Cur, MaxA)
 {
     this.OnNumFound = OnFound;
 }
コード例 #3
0
ファイル: FermatsTest.cs プロジェクト: Stonefacer/RSA-Tool
        public static FermatsTest Start(BigInteger bi, BigInteger Iters, GetNextNumber gn, ChangeCurrentNumber OnFound)
        {
            FermatsTest nw = new FermatsTest(bi, Iters, OnFound);

            nw.GetNext = gn;
            nw.Start();
            return(nw);
        }