ManyMonkeys.Cryptography.Twofish.GenerateKey C# (CSharp) Method

GenerateKey() public method

Generates a random Key. This is only really useful in testing scenarios.
public GenerateKey ( ) : void
return void
        public override void GenerateKey()
        {
            Key = new byte[KeySize/8];

            // set the array to all 0 - implement a random key generation mechanism later probably based on PRNG
            for (int i=Key.GetLowerBound(0);i<Key.GetUpperBound(0);i++)
            {
                Key[i]=0;
            }
        }