Skip to content
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

Uuid not necessarily universal unique id #3

Closed
bennetyee opened this issue Aug 7, 2021 · 1 comment
Closed

Uuid not necessarily universal unique id #3

bennetyee opened this issue Aug 7, 2021 · 1 comment
Labels
p:2 Priority: potential feature

Comments

@bennetyee
Copy link

const getUuid = () => {
return 'toast-container' + new Date().getTime() + '-' + toastCount++;
};

this is used in

and it's unclear whether an UUID is really needed and what could happen if the id field could have collisions -- whether it's sent to any servers (i'm guessing not), and what would happen if somebody w/ a separate connection to the same server(s) were to guess the uuid value. Date().getTime() is in milliseconds, so guessing it might require a few trials, but should definitely be feasible.

a comment as to the implications would be nice. or rename this if an actual UUID/GUID is not needed. if one is actually needed, then using a real RFC-4122 compliant UUID might be nice, since there are existing uuid solutions, e.g., https://www.npmjs.com/package/uuid, which could be used.

tagging #1 for possible security implications

@peterjgilbert peterjgilbert added the p:2 Priority: potential feature label Aug 17, 2021
@tjanez
Copy link
Member

tjanez commented Sep 9, 2021

The UUID code was removed in #139.

@tjanez tjanez closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:2 Priority: potential feature
Projects
None yet
Development

No branches or pull requests

3 participants