const uuid_characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const uuid_character_len = uuid_characters.length;
export function uuid(length = 8) {
    let id = '';
    for (let i = 0; i < length; i++) {
        const randomIndex = ~~(Math.random() * uuid_character_len);
        id += uuid_characters[randomIndex];
    }
    return id;
}