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

Function generateLogEventId

packages/shared/src/lib/logEventId.ts:1–5  ·  view source on GitHub ↗
(now = new Date())

Source from the content-addressed store, hash-verified

1export const generateLogEventId = (now = new Date()): string => {
2 const randomStr = (Math.random() + 1).toString(36).substring(8);
3 const timePart = (now.getTime() / 1000).toFixed(0);
4 return `${timePart}${randomStr}`;
5};

Callers 2

generateEventFunction · 0.90
logServerPageRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected