generateRandomString

Function

Generate a random string of a specified length User when we need to ensure a unique domain with a fixed length

  • generateRandomString(chars: number) : string

Parameters

Parameter Type Default Notes
chars Required number

Length of random string

Returns

string

Function defined in common/src/utils/generate-random-string.ts:6