Example #1
0
        private int FillArrayWithRandomNumbers(object[] test)
        {
            int addSize = 0;

            for (int t = test.Length - 1; t >= 0; t--)
            {
                int newNr = rnd.Next();
                addSize += new MpInt()
                {
                    Value = newNr
                }.ToBytes().Length;
                test[t] = newNr;
            }
            return(addSize);
        }
Example #2
0
        private int FillArrayWithRandomNumbers(object[] test)
        {
            MsgPackSettings settings = new MsgPackSettings()
            {
            };
            Randomizer rnd     = new Randomizer();
            int        addSize = 0;

            for (int t = test.Length - 1; t >= 0; t--)
            {
                int newNr = rnd.Next();
                addSize += new MpInt(settings)
                {
                    Value = newNr
                }.ToBytes().Length;
                test[t] = newNr;
            }
            return(addSize);
        }