This client action generates a unique GUID. It uses the JavaScript randomUUID() method of the Crypto interface. It generates a v4 UUID using a cryptographically secure random number generator.
Update: now supporting optional sequencial and timestamped UUID v7
Example of a generated GUID: "635844f6-0856-42a2-a832-4b9d3b775bd2"
Browser compatibility:
(source: developer.mozilla.org)
For more information check the following links:
https://w3c.github.io/webcrypto/#Crypto-method-randomUUID
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID
https://buildkite.com/blog/goodbye-integers-hello-uuids
Code update for UUiD v7