e8869e210c
* feat(frontend): build speed & chunk structure optimization * fix: attempting to work around precommit inconsistent eslint config * chore(pre-commit config): ignore mocharc for eslint Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
11 lines
246 B
JavaScript
11 lines
246 B
JavaScript
/**
|
|
* Generate a random string of any length
|
|
* @param {number} length
|
|
* @returns
|
|
*/
|
|
export function randomString(length) {
|
|
return Math.round(Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))
|
|
.toString(36)
|
|
.slice(1)
|
|
}
|