mirror of https://github.com/friendica/friendica
14 lines
316 B
JavaScript
14 lines
316 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = (function () {
|
||
|
function s4() {
|
||
|
return Math.floor((1 + Math.random()) * 0x10000)
|
||
|
.toString(16)
|
||
|
.substring(1);
|
||
|
}
|
||
|
return function () {
|
||
|
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
|
||
|
s4() + '-' + s4() + s4() + s4();
|
||
|
};
|
||
|
})();
|