Skip to content

fix(utils): use crypto.randomUUID for UUID generation - #1555

Open
Dhruv-158 wants to merge 2 commits into
vercel:mainfrom
Dhruv-158:fix/crypto-random-uuid
Open

Dhruv-158 wants to merge 2 commits into
vercel:mainfrom
Dhruv-158:fix/crypto-random-uuid

Conversation

@Dhruv-158

Copy link
Copy Markdown

Summary

@vercel

vercel Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread lib/utils.ts Resolved
@Dhruv-158

Copy link
Copy Markdown
Author

Updated generateUUID() to use crypto.randomUUID() when it exists, and crypto.getRandomValues() otherwise. That covers a phone opening the dev server over a non-localhost HTTP address, so ActiveChatProvider can still render.

This branch has not been deployed

No deployments
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.

Replace custom UUID v4 helper with native crypto.randomUUID()

1 participant