Generate a UUID v4 string.
Uses the native crypto.randomUUID() if available; otherwise falls back to a random-based implementation using randomUint8Array.
crypto.randomUUID()
randomUint8Array
UUID v4 string in standard 8-4-4-4-12 hex format
Generate a UUID v4 string.
Uses the native
crypto.randomUUID()if available; otherwise falls back to a random-based implementation usingrandomUint8Array.