function genUuid(length) {
const random = Date.now().toString(36);
if (random.length > length) {
return random.substr().substr(random.length - length, length);
} else if (random.length < length) {
return Array(length - random.length).fill('').map(() => Math.ceil(Math.random() * 35).toString(36)).join('') + random;
}
return random;
}