Mercurial > public > m209
changeset 30:908510c6d02a
Fix comment typo & rework comments a bit.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 19 Jun 2013 21:09:48 -0500 |
parents | 922b7a6ff65e |
children | 853542100fc6 |
files | m209/keylist/generate.py |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/m209/keylist/generate.py Wed Jun 19 21:06:45 2013 -0500 +++ b/m209/keylist/generate.py Wed Jun 19 21:09:48 2013 -0500 @@ -71,12 +71,11 @@ def generate_lugs(): """Return random lug settings based on Army procedure.""" - # From the manual: - # "2a: Select a set of numbers from either group A or group B in appenix II. - # Sets of numbers selected from group B must not exceed 10% of the total - # sets selected." - - # For our purposes, we'll just pick from group B 10% of the time. We also + # From the manual: "2a: Select a set of numbers from either group A or group + # B in appendix II. Sets of numbers selected from group B must not exceed + # 10% of the total sets selected." + # + # For our purposes, we'll just pick from group B ~10% of the time. We also # (currently) have no history of prior key list generations, so we don't # worry about reusing sets or how often we've picked from group B. rn = random.randint(0, 100)