MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / make_uuid

Function make_uuid

scripts/backup/fb-proxy.js:1–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function 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";

Callers 1

cacheFunctionFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected