示例#1
0
        public void Init()
        {
            const int bytesCount = 32;
            const int randCount  = 1000;
            const int primCount  = 40;

            _numbers = new(randCount + primCount);

            for (int i = 0; i < randCount; ++i)
            {
                _numbers.Add(BigIntegerExtension.GetRandom(bytesCount));
            }

            for (int i = 0; i < primCount; ++i)
            {
                _numbers.Add(BigIntegerExtension.GetRandomPrime(bytesCount, (b) => b.SolovayStrassenTest(1000)));
            }
        }