Skip to content

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