crypto.randomUUID
FunctionGenerates a cryptographically secure UUID.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
randomUUID():
string
Generates a cryptographically secure UUID. This method mimics crypto.randomUUID() from the Web Crypto API.
Returns: A securely generated UUID string.
Returns
string