MCPcopy
hub / github.com/AsyncBanana/microdiff / generateRandomString

Function generateRandomString

benchmarks/_utils.js:2–8  ·  view source on GitHub ↗
(len = 5)

Source from the content-addressed store, hash-verified

1const characters = "abcdefghijklmnopqrstuvwxyz1234567890".split("");
2export function generateRandomString(len = 5) {
3 let randomString = "";
4 for (let characterCount = 0; characterCount < len; characterCount++) {
5 randomString += characters[Math.round(Math.random() * characters.length)];
6 }
7 return randomString;
8}

Callers 3

large.jsFile · 0.90
largeDiff.jsFile · 0.90
nested.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…