Module: utils/random/randomString

Methods

(static) randomString(length, provider) → {string|string}

Generates a random string of given length. Prefers web-crypto API (if available) and falls back to Math.random

Parameters:
Name Type Description
length number
provider string
Source:
Returns:
Type
string | string