Skip to content

Hardening suggestions for PythonBatchSept2024 / class30#37

Open
pixeebot[bot] wants to merge 1 commit into
class30from
pixeebot/class30
Open

Hardening suggestions for PythonBatchSept2024 / class30#37
pixeebot[bot] wants to merge 1 commit into
class30from
pixeebot/class30

Conversation

@pixeebot
Copy link
Copy Markdown

@pixeebot pixeebot Bot commented Oct 31, 2024

I've reviewed the recently opened PR (36 - class30 - oop) and have identified some area(s) that could benefit from additional hardening measures.

These changes should help prevent potential security vulnerabilities and improve overall code quality.

Thank you for your consideration!
🧚🤖 Powered by Pixeebot

Feedback | Community | Docs

@pixeebot pixeebot Bot requested a review from udhayprakash October 31, 2024 00:18

def random_price():
return random.randint(20, 100)
return secrets.SystemRandom().randint(20, 100)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace random.{func} with more secure secrets library functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants