public void GetBytes(byte[] buffer) { int byteCount = buffer.Length; byte[] randomBuffer = SupportFunctions.GenerateSecureRandomBytes(byteCount); Array.Copy(randomBuffer, buffer, byteCount); }