Example #1
0
        //
        // Delegates to RandomBytes.
        //

        /**
         * Returns a byte array with random content.
         *
         * @param length The length of the byte array. Can be zero.
         * @return Returns a byte array with random content.
         */
        public static byte[] RandomBytesOfLength(int length)
        {
            return(RandomBytes.RandomBytesOfLength(new Random(Random.Next()), length));
        }