Esempio n. 1
0
        public void TestRandomPositiveBigIntegerOfSizeInBits()
        {
            RandomNumberGenerator random = new RNGCryptoServiceProvider();
            BigInteger            value  = random.RandomPositiveBigIntegerOfSizeInBits(1023);

            Assert.IsTrue(value.BitLength() == 1023);
        }