Добавить муром.файл_1.0.0

This commit is contained in:
2019-10-04 12:14:23 +03:00
parent 6917cc0212
commit 4f3186618c
5 changed files with 106 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
// Create GUID / UUID in JavaScript?
// https://stackoverflow.com/a/2117523
муром.uuid = function()
{
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
/[xy]/g,
function(c)
{
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
}
);
};