# HG changeset patch # User Brian Neal # Date 1371694188 18000 # Node ID 908510c6d02a650dc434a41bc2f9afb8f2bd4578 # Parent 922b7a6ff65eb1570323feef0f77ec37d47e9591 Fix comment typo & rework comments a bit. diff -r 922b7a6ff65e -r 908510c6d02a m209/keylist/generate.py --- 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)