Skip to content

Commit

Permalink
Prevent bandit warning
Browse files Browse the repository at this point in the history
In this case we're using `random` not for security but just for random
number.
  • Loading branch information
bitphage committed May 21, 2019
1 parent 2c994a5 commit 8249268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def unused_account(bitshares):
def _unused_account():
_range = 100000
while True:
account = 'worker-{}'.format(random.randint(1, _range))
account = 'worker-{}'.format(random.randint(1, _range)) # nosec
try:
Account(account, bitshares_instance=bitshares)
except AccountDoesNotExistsException:
Expand Down

0 comments on commit 8249268

Please sign in to comment.