projects
/
cipher-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18fe908
)
Tweaked logging
author
Neil Smith
<neil.git@njae.me.uk>
Thu, 30 Nov 2017 21:44:16 +0000
(21:44 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Thu, 30 Nov 2017 21:44:16 +0000
(21:44 +0000)
cipherbreak.py
patch
|
blob
|
history
diff --git
a/cipherbreak.py
b/cipherbreak.py
index a70e83512dddb09123b7937dec9a1e72af5f7cbd..de605d34d67b49e214cab7d280b1eb19cc76b8bf 100644
(file)
--- a/
cipherbreak.py
+++ b/
cipherbreak.py
@@
-379,7
+379,7
@@
def simulated_annealing_break_worker(message, plain_alphabet, cipher_alphabet,
logger.debug('Simulated annealing: iteration {}, temperature {}, '
'current alphabet {}, current_fitness {}, '
'best_plaintext {}'.format(i, temperature, current_alphabet,
- current_fitness,
best_
plaintext[:50]))
+ current_fitness, plaintext[:50]))
temperature = max(temperature - dt, 0.001)
return best_alphabet, best_fitness # current_alphabet, current_fitness