-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ensure unique x-coordinates with sampling (Fixes #20) #21
Ensure unique x-coordinates with sampling (Fixes #20) #21
Conversation
Oops! Looks like we can't use |
Can we make x_coordinates a set? Also, thinking if generating random numbers per array index is a good idea in terms of security? Need to check the best way to generate a random array correctly. |
How about using this
|
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.
LGTM. @Loadingname91 , @AbhishekSrikanth please check and let me know.
Kudos, SonarCloud Quality Gate passed! |
This pull request fixes an issue where duplicate x-coordinates could be generated. The fix involves using random sampling to ensure that all x-coordinates in the list are unique.
Changes Made
random.sample()
to generate a list of unique numbers than manually loop to generate a random secret.