Commit 11b53fab authored by Tristan Cavelier's avatar Tristan Cavelier

Add an uuid generator to jio.intro.js

parent 5fc8cbd7
var jio = function(spec) { var jio = function(spec) {
var generateUuid = function () {
var S4 = function () {
return Math.floor(
Math.random() * 0x10000 /* 65536 */
).toString(16);
};
return S4() + S4() + "-" +
S4() + "-" +
S4() + "-" +
S4() + "-" +
S4() + S4() + S4();
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment