KI Code.
Generates a UUID v4. Uses crypto.randomUUID() when available (HTTPS / secure contexts), and falls back to crypto.getRandomValues() otherwise (works on HTTP as well).
crypto.randomUUID()
crypto.getRandomValues()
KI Code.
Generates a UUID v4. Uses
crypto.randomUUID()when available (HTTPS / secure contexts), and falls back tocrypto.getRandomValues()otherwise (works on HTTP as well).