projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch tox to use allowlist_externals
[mudpy.git]
/
mudpy
/
misc.py
diff --git
a/mudpy/misc.py
b/mudpy/misc.py
index
ba29a90
..
044614f
100644
(file)
--- a/
mudpy/misc.py
+++ b/
mudpy/misc.py
@@
-1227,7
+1227,7
@@
def weighted_choice(data):
expanded.append(key)
# return one at random
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
# 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
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)
# security/cryptographic purposes
for _syllable in range(random.randrange(2, 6)): # nosec
name += weighted_choice(syllables)