(length = 12)
| 864 | } |
| 865 | |
| 866 | function makeRandomHex(length = 12): string { |
| 867 | const bytes = new Uint8Array(length); |
| 868 | crypto.getRandomValues(bytes); |
| 869 | return Array.from(bytes, b => b.toString(16).padStart(2, "0")).join(""); |
| 870 | } |
| 871 | |
| 872 | async function uploadToFilebin(fileBlob: Blob, filename: string): Promise<string> { |
| 873 | if (Native) { |
no outgoing calls
no test coverage detected