MCPcopy
hub / github.com/alibaba/lightproxy / uuidv4

Function uuidv4

src/renderer/utils.ts:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14export function uuidv4() {
15 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
16 const r = (Math.random() * 16) | 0,
17 v = c == 'x' ? r : (r & 0x3) | 0x8;
18 return v.toString(16);
19 });
20}
21
22export async function getWhistlePort(coreAPI: CoreAPIClass): Promise<number> {
23 return new Promise(resolve => {

Callers 2

handleAddRuleFunction · 0.90
main.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected