4

This will never clash:

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

return s4() + s4() + s4() + s4(); // Example => 'e014026082e6237b'
}

Comments
Add Comment