Skip to content

Commit

Permalink
Avoid codacy warnings
Browse files Browse the repository at this point in the history
We're not using random.xxx() for security purposes.
  • Loading branch information
bitphage committed Oct 5, 2019
1 parent ad51f05 commit 4da6f7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/strategies/relative_orders/conftest.py
Expand Up @@ -160,12 +160,12 @@ def other_orders_random(other_worker):
center = 1
num_orders = 10
for _ in range(num_orders):
price = random.uniform(lower_bound, center)
amount = random.uniform(0.5, 10)
price = random.uniform(lower_bound, center) # nosec
amount = random.uniform(0.5, 10) # nosec
worker.place_market_buy_order(amount, price)
for _ in range(num_orders):
price = random.uniform(center, upper_bound)
amount = random.uniform(0.5, 10)
price = random.uniform(center, upper_bound) # nosec
amount = random.uniform(0.5, 10) # nosec
worker.place_market_sell_order(amount, price)


Expand Down

0 comments on commit 4da6f7b

Please sign in to comment.