'use strict'

function create() {
    function s4() {
        return Math.floor((1 + Math.random()) * 0x10000)
            .toString(16)
            .substring(1);
    }

    return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
        s4() + '-' + s4() + s4() + s4();
}

module.exports = {
    create: create
}
'use strict'

// basic random id on 7 digits
function create() {
    return Math.random().toString(36).substring(7);
}

module.exports = {
    create: create
}
Refactor uuid.js to have a very basic uid generator