{"ScriptPreparationCode":null,"TestCases":[{"Name":"With web crypto","Code":"function getUUID() {\r\n return ([1e7] \u002B -1e3 \u002B -4e3 \u002B -8e3 \u002B -1e11).replace(/[018]/g, (c) =\u003E\r\n (c ^ (crypto.getRandomValues(new Uint8Array(1))[0] \u0026 (15 \u003E\u003E (c / 4)))).toString(16),\r\n );\r\n }\r\ngetUUID()","IsDeferred":false},{"Name":"Math.random","Code":"function getUUID() {\r\n return \u0027xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\u0027.replace(/[xy]/g, function(c) {\r\n var r = Math.random() * 16 | 0, v = c == \u0027x\u0027 ? r : (r \u0026 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n}\r\ngetUUID()","IsDeferred":false}]}