MCPcopy Create free account
hub / github.com/NsLearning/LangHelper / uid

Function uid

ChatGPT/src-tauri/src/scripts/core.js:3–3  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1// *** Core Script - IPC ***
2
3const uid = () => window.crypto.getRandomValues(new Uint32Array(1))[0];
4function transformCallback(callback = () => {}, once = false) {
5 const identifier = uid();
6 const prop = `_${identifier}`;

Callers 1

transformCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected