'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
}
@@ -11,32 +11,39 @@
 t'%0A%0A
-function create() %7B%0A    
+// basic random id on 7 digits%0A
 func
@@ -51,19 +51,19 @@
 ion 
-s4
+create
 () %7B%0A
-    
     
@@ -78,57 +78,16 @@
 ath.
-floor((1 + Math.random()) * 0x10000)%0A            
+random()
 .toS
@@ -96,141 +96,23 @@
 ing(
-16)%0A            .substring(1);%0A    %7D%0A%0A    return s4() + s4() + '-' + s4() + '-' + s4() + '-' +%0A        s4() + '-' + s4() + s4() + s4(
+36).substring(7
 );%0A%7D

Refactor uuid.js to have a very basic uid generator