This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-04 12:20:29 +00:00
|
|
|
const DEFAULT_ID_LENGTH = 9
|
|
|
|
|
|
|
|
export function createRandomID(idLength = DEFAULT_ID_LENGTH) {
|
2022-10-03 10:18:20 +00:00
|
|
|
return Math.random().toString(36).slice(2, idLength)
|
2021-10-04 12:20:29 +00:00
|
|
|
}
|