()
| 7 | * @returns A nonce |
| 8 | */ |
| 9 | export 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 | } |
no outgoing calls
no test coverage detected