()
| 1 | function make_uuid() { |
| 2 | let h = new Date().getTime(); |
| 3 | return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (i) { |
| 4 | let F = (h + 16 * Math.random()) % 16 | 0; |
| 5 | h = Math.floor(h / 16); |
| 6 | return (i == "x" ? F : (3 & F) | 8).toString(16); |
| 7 | }); |
| 8 | } |
| 9 | |
| 10 | (function () { |
| 11 | "use strict"; |
no test coverage detected