Example #1
0
        private static void Shuffle(byte[] data, uint version)
        {
            var rand32 = new Rand32((uint)Math.Pow(version, 2));

            for (int i = TABLE_SIZE - 1; i >= 1; i--)
            {
                byte rand = (byte)(rand32.Random() % (i + 1));

                byte swap = data[i];
                data[i]    = data[rand];
                data[rand] = swap;
            }
        }
Example #2
0
 private void AdvanceIV()
 {
     iv = Rand32.CrtRand(iv);
 }