mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Fixed type error
This commit is contained in:
parent
9f032fffbc
commit
097692900a
1 changed files with 2 additions and 2 deletions
|
@ -213,9 +213,9 @@ def LFSR(m: int) -> Iterator[int]:
|
|||
"""
|
||||
n: int = m.bit_length() - 1
|
||||
# Set initial state to {1 0 0 ... 0}
|
||||
state: List[bool] = [0] * n
|
||||
state: List[int] = [0] * n
|
||||
state[0] = 1
|
||||
feedback: bool = 0
|
||||
feedback: int = 0
|
||||
poly: List[int] = polys[n]
|
||||
while True:
|
||||
# Compute the feedback bit
|
||||
|
|
Loading…
Add table
Reference in a new issue