Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
const
uid = () => window.crypto.getRandomValues(
new
Uint32Array(1))[0];
4
function
transformCallback(callback = () => {}, once = false) {
5
const
identifier = uid();
6
const
prop = `_${identifier}`;
Callers
1
transformCallback
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected