Skip to content

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

Merged
dgeb merged 1 commit into
mainfrom
random-uuid
Jan 20, 2022
Merged

Use crypto.randomUUID by default for Orbit.uuid#913
dgeb merged 1 commit into
mainfrom
random-uuid

Conversation

@dgeb

@dgeb dgeb commented Jan 20, 2022

Copy link
Copy Markdown
Member

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