X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmisc.py;fp=mudpy%2Fmisc.py;h=044614fb2aaec370376c2189514bd6498cbe9714;hp=ba29a907ea0996a7ea8ff217122b89bee5eb0467;hb=6841e0ca1d916a31178ceab9bb7802f7a055bd52;hpb=29041014a531835bf9b6a80ca9d7ed414a929432 diff --git a/mudpy/misc.py b/mudpy/misc.py index ba29a90..044614f 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -1227,7 +1227,7 @@ def weighted_choice(data): expanded.append(key) # return one at random - # Whitelist the random.randrange() call in bandit since it's not used for + # Allow the random.randrange() call in bandit since it's not used for # security/cryptographic purposes return random.choice(expanded) # nosec @@ -1276,7 +1276,7 @@ def random_name(): name = "" # create a name of random length from the syllables - # Whitelist the random.randrange() call in bandit since it's not used for + # Allow the random.randrange() call in bandit since it's not used for # security/cryptographic purposes for _syllable in range(random.randrange(2, 6)): # nosec name += weighted_choice(syllables)