MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / getNonce

Function getNonce

src/services/webview/render.ts:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import logger from '../logger'
7
8const getNonce = (): string => {
9 let text = ''
10 const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
11 for (let i = 0; i < 32; i++) {
12 text += possible.charAt(Math.floor(Math.random() * possible.length))
13 }
14 return text
15}
16
17/**
18 * render

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected