MCPcopy Create free account
hub / github.com/dailydotdev/apps / generateTrackingId

Function generateTrackingId

packages/webapp/proxy.ts:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const TRACKING_ID_LENGTH = 21;
24
25const generateTrackingId = (): string => {
26 const bytes = crypto.getRandomValues(new Uint8Array(TRACKING_ID_LENGTH));
27 return Array.from(
28 bytes,
29 (byte) => TRACKING_ID_ALPHABET[byte % TRACKING_ID_ALPHABET.length],
30 ).join('');
31};
32
33// Only the routes the proxy acts on: the post page (markdown negotiation, the
34// agent signup wall and the laptop mirror) and the markdown routes. Next reads

Callers 1

handleMarkdownRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected