MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / guid

Function guid

public/iframe/lib/js/commonFun.js:367–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365
366 },
367 guid() {
368 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
369 const r = Math.random() * 16 | 0;
370 const v = c == 'x' ? r : (r & 0x3 | 0x8);
371 return v.toString(16);
372 });
373 },
374 // 获取随机颜色
375 getRandomColor() {
376 const color = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected