From b31d830c763424374f505eb54c457b90b6a282b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 9 Mar 2017 10:02:52 +0100 Subject: [PATCH] Remove dead man walking set generator. --- docs/software.rst | 7 ++----- stegano/lsbset/generators.py | 8 -------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/docs/software.rst b/docs/software.rst index 3b894ce..e3bf1eb 100644 --- a/docs/software.rst +++ b/docs/software.rst @@ -90,9 +90,6 @@ Sets are used in order to select the pixels where the message will be hidden. # List all available generators $ lsb-set list-generators - Dead_Man_Walking - Dead Man Walking. - OEIS_A000217 http://oeis.org/A000217 Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n. @@ -107,8 +104,8 @@ Sets are used in order to select the pixels where the message will be hidden. eratosthenes Generate the prime numbers with the sieve of Eratosthenes. - eratosthenes_composite - Generate the composite numbers with the sieve of Eratosthenes. + composite + Generate the composite numbers using the sieve of Eratosthenes. fermat Generate the n-th Fermat Number. diff --git a/stegano/lsbset/generators.py b/stegano/lsbset/generators.py index 4980d9e..b1643d4 100644 --- a/stegano/lsbset/generators.py +++ b/stegano/lsbset/generators.py @@ -37,14 +37,6 @@ def identity() -> Iterator[int]: yield n n += 1 -def Dead_Man_Walking() -> Iterator[int]: - """Dead Man Walking. - """ - n = 0 - while True: - yield n + 7 - n += 2 - def triangular_numbers() -> Iterator[int]: """http://oeis.org/A000217 Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n.