Mercurial > public > m209
changeset 61:35b5eb90f5ad
Double the length of the internal message indicator as I have seen 12 not be
enough.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 14:32:51 -0500 |
parents | 0a3e4bc49118 |
children | 42d7e5410dbd |
files | m209/procedure.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m209/procedure.py Fri Jul 12 14:17:02 2013 -0500 +++ b/m209/procedure.py Fri Jul 12 14:32:51 2013 -0500 @@ -137,9 +137,12 @@ elif sys_ind is None: sys_ind = random.choice(M209_ALPHABET_LIST) - # Generate internal message indicator + # Generate internal message indicator. + # Note that the training film instructs the operator to encipher the + # system indicator 12 times. Occasionally I have found this is not + # enough letters. We double it to 24. - int_msg_ind = self.m_209.encrypt(sys_ind * 12, group=False) + int_msg_ind = self.m_209.encrypt(sys_ind * 24, group=False) self.m_209.letter_counter = 0