MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / makeRandomHex

Function makeRandomHex

utils/upload.ts:866–870  ·  view source on GitHub ↗
(length = 12)

Source from the content-addressed store, hash-verified

864}
865
866function 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
872async function uploadToFilebin(fileBlob: Blob, filename: string): Promise<string> {
873 if (Native) {

Callers 2

uploadToEncryptingHostFunction · 0.70
uploadToFilebinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected