Generates a random hash.
The length of the hash. Defaults to 32.
The encoding of the hash. Defaults to 'hex'.
A random hash.
genRandomHash() // '1234567890abcdef1234567890abcdef' Copy
genRandomHash() // '1234567890abcdef1234567890abcdef'
Generates a random hash.