MCPcopy Index your code
hub / github.com/bitiful/send / generateRandomString

Function generateRandomString

app/page.tsx:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 const [tip, setTip] = useState("")
16
17 function generateRandomString() {
18 const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
19 let result = '';
20 for (let i = 0; i < 10; i++) {
21 result += characters.charAt(Math.floor(Math.random() * characters.length));
22 }
23 return result;
24 }
25
26 function upload(url: string, file: File, onProgress: (event: ProgressEvent<EventTarget>) => void) {
27 return new Promise((res, rej) => {

Callers 1

uploadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…