Function generateRandomId
Parameters
- encoding: "base64url" | "hex" | "uuidv4" = "base64url"
Encoding to use, base64url, hex or uuidv4. Default is base64url
- bytes: number = 16
Number of bytes to generate. Default is 16
Returns string
An encoded ID. With the default settings it will be a url (and filename) safe string of 22 characters in length
- encoding: "base64url" | "hex" | "uuidv4" = "base64url"
Generate a configurable random id (the default settings, base64url and 16 bytes, match HareScript's GenerateUFS128BitId)