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

Use crypto.randomUUID by default for Orbit.uuid #913

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Use crypto.randomUUID by default for Orbit.uuid #913

merged 1 commit into from
Jan 20, 2022

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Jan 20, 2022

A browser's built-in Crypto interface should provide the fastest and most secure UUID v4 implementation. Only default to the custom uuid function from @orbit/utils if crypto.randomUUID is not available.

Closes #902

A browser's built-in Crypto interface should provide the fastest and most secure UUID v4 implementation. Only default to the custom `uuid` function from `@orbit/utils` if `crypto.randomUUID` is not available.
@dgeb dgeb merged commit c3f7a96 into main Jan 20, 2022
@dgeb dgeb deleted the random-uuid branch January 20, 2022 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default Orbit.uuid to crypto.randomUUID()
1 participant