Exemple #1
0
        private void Search6_ID()
        {
            var rng = new TinyMT(new uint[] { ID_Tiny0.Value, ID_Tiny1.Value, ID_Tiny2.Value, ID_Tiny3.Value });
            int min = (int)Frame_min.Value;
            int max = (int)Frame_max.Value;

            IDFrames.Clear();
            IDFrames            = new List <Frame_ID>();
            Frame_ID.correction = 0xFF;
            IDFilters idfilter = getIDFilter();

            for (int i = 0; i < min; i++)
            {
                rng.Next();
            }
            for (int i = min; i <= max; i++)
            {
                var result = new ID6(rng);
                if (!idfilter.CheckResult(result))
                {
                    continue;
                }
                IDFrames.Add(new Frame_ID(result, i));
            }
        }
Exemple #2
0
        private void Search7_ID()
        {
            SFMT rng = new SFMT(Seed.Value);
            int  min = (int)Frame_min.Value;
            int  max = (int)Frame_max.Value;

            IDFrames.Clear();
            IDFrames            = new List <Frame_ID>();
            Frame_ID.correction = (byte)Clk_Correction.Value;
            IDFilters idfilter = getIDFilter();

            for (int i = 0; i < min; i++)
            {
                rng.Next();
            }
            for (int i = min; i <= max; i++)
            {
                var result = new ID7(rng.Nextulong());
                if (!idfilter.CheckResult(result))
                {
                    continue;
                }
                IDFrames.Add(new Frame_ID(result, i));
            }
        }