X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy%2Fcommand.py;h=d72e4e3ea039cedf68b708770d2c2d9c73ad5810;hb=b8cc76c23fdce1f9cd8ae5cbf23e8271abffa121;hp=601bc82c3ca7d2e3704e1465ef795c31478e0100;hpb=13ad9d33469c0ad12d0de34744cb30cc00bdba32;p=mudpy.git diff --git a/mudpy/command.py b/mudpy/command.py index 601bc82..d72e4e3 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -111,7 +111,9 @@ def error(actor, input_data): """Generic error for an unrecognized command word.""" # 90% of the time use a generic error - if random.randrange(10): + # Whitelist the random.randrange() call in bandit since it's not used for + # security/cryptographic purposes + if random.randrange(10): # nosec message = '''I'm not sure what "''' + input_data + '''" means...''' # 10% of the time use the classic diku error