diff --git a/src/StegoCoreLib/Algorithms/IStegoAlgorithm.cs b/src/StegoCoreLib/Algorithms/IStegoAlgorithm.cs index f8766bb..635c99f 100644 --- a/src/StegoCoreLib/Algorithms/IStegoAlgorithm.cs +++ b/src/StegoCoreLib/Algorithms/IStegoAlgorithm.cs @@ -12,6 +12,6 @@ public interface IStegoAlgorithm byte[] Decode(Image stegoImage, Settings settings = null); int ReadSecretLength(Image stegoImage, Settings settings = null); - + bool IsEmbedPossible(Image image, int secretLength); } diff --git a/src/StegoCoreLib/Algorithms/Lsb.cs b/src/StegoCoreLib/Algorithms/Lsb.cs index c9a980e..d04faf4 100644 --- a/src/StegoCoreLib/Algorithms/Lsb.cs +++ b/src/StegoCoreLib/Algorithms/Lsb.cs @@ -18,7 +18,6 @@ public override Image Embed(Image baseImage, SecretData secret, BitArray secretBits = secret.SecretWithLengthBits; if (IsEmbedPossible(baseImage, secretBits.Length) == false) throw new InvalidDataException("Secret data is to big for embending."); - Random random = GetRandomGenenator(settings); int index = 0; while (index < secretBits.Length)