MCPcopy Create free account
hub / github.com/bugy/script-server / s4

Function s4

web-src/src/common/utils/common.js:228–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227export function guid(length) {
228 function s4() {
229 return Math.floor((1 + Math.random()) * 0x10000)
230 .toString(16)
231 .substring(1);
232 }
233
234 var guid = s4() + s4() + '-' + s4() + '-' + s4() + '-' +
235 s4() + '-' + s4() + s4() + s4();

Callers 1

guidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected