A function which generates UUID v4 identifiers.
A new UUID v4 string.
This implementation complies with RFC 4122.
This uses Random.getRandomValues() for random bytes, which in turn will use the underlying crypto module of the platform if it is available. The fallback for randomness is Math.random.
Random.getRandomValues()
crypto
Math.random
Generated using TypeDoc
A function which generates UUID v4 identifiers.
Returns
A new UUID v4 string.
Notes
This implementation complies with RFC 4122.
This uses
Random.getRandomValues()for random bytes, which in turn will use the underlyingcryptomodule of the platform if it is available. The fallback for randomness isMath.random.