Skip to content

Remove use of Math.random()#3

Open
fidian wants to merge 1 commit intopin705:mainfrom
fidian:remove-math-random
Open

Remove use of Math.random()#3
fidian wants to merge 1 commit intopin705:mainfrom
fidian:remove-math-random

Conversation

@fidian
Copy link

@fidian fidian commented Jul 24, 2024

Using Math.random() is considered insecure and automated tools will indiscriminately flag the code. In this case, you're looking for a unique key that could be assigned to an object, so an auto-incrementing number appears to be adequate and still provide a non-conflicting "id".

Using `Math.random()` is considered insecure and automated tools will
indiscriminately flag the code. In this case, you're looking for a
unique key that could be assigned to an object, so an auto-incrementing
number appears to be adequate and still provide a non-conflicting "id".
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.

1 participant