MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getNonce

Function getNonce

src/core/webview/getNonce.ts:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * @returns A nonce
8 */
9export function getNonce() {
10 let text = ""
11 const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
12 for (let i = 0; i < 32; i++) {
13 text += possible.charAt(Math.floor(Math.random() * possible.length))
14 }
15 return text
16}

Callers 2

getHMRHtmlContentMethod · 0.90
getHtmlContentMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected