Function returns a random uuid v4 in a string form.
Parameters
Parameter | Type | Description |
---|---|---|
secure (optional) | boolean | By default, uuidv4() uses a standard random number generator. If the secure option is set to true, uuidv4 uses a cryptographically secure random number generator instead. While this adds security, the secure option also makes the function an order of magnitude slower. |
Returns
Type | Description |
---|---|
string | Random UUID v4 string |