MCPcopy Create free account
hub / github.com/firebase/firebase-tools / genRandomId

Function genRandomId

scripts/functions-deploy-tests/tests.ts:20–27  ·  view source on GitHub ↗
(n = 10)

Source from the content-addressed store, hash-verified

18const FNS_COUNT = 20;
19
20function genRandomId(n = 10): string {
21 const charset = "abcdefghijklmnopqrstuvwxyz";
22 let id = "";
23 for (let i = 0; i < n; i++) {
24 id += charset.charAt(Math.floor(Math.random() * charset.length));
25 }
26 return id;
27}
28
29interface Opts {
30 v1Opts: functions.RuntimeOptions;

Callers 1

tests.tsFile · 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…