-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loadtests #2718
base: develop
Are you sure you want to change the base?
Loadtests #2718
Conversation
…eed to refined further (and some of the requests will are probably incorrect).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pylint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
def get_random_tx_hash(): | ||
if NO_CACHE: | ||
return HARDCODED_TX_HASHES[0] | ||
return random.choice(HARDCODED_TX_HASHES) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_address(): | ||
if NO_CACHE: | ||
return HARDCODED_ADDRESSES[0] | ||
return random.choice(HARDCODED_ADDRESSES) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_order(): | ||
if NO_CACHE: | ||
return HARDCODED_ORDERS[0] | ||
return random.choice(HARDCODED_ORDERS) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_asset(): | ||
if NO_CACHE: | ||
return 'PEPECASH' | ||
return random.choice(['PEPECASH', 'BTC', 'ETH']) # Example of random choice |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_quantity(): | ||
if NO_CACHE: | ||
return 1000 | ||
return random.randint(1, 10000) # Example of random range |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_limit(): | ||
if NO_CACHE: | ||
return 1000 | ||
return random.randint(1, 1000) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
def get_random_cursor(): | ||
if NO_CACHE: | ||
return 1000 | ||
return random.randint(0, 100000) |
Check notice
Code scanning / Bandit
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Note
@ouziel-slama would you run this against the |
No description provided.