MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / randomMessageFlag

Function randomMessageFlag

src/pkg/utils/utils.ts:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8export function randomMessageFlag(): string {
9 // parseInt('a0000000', 36) = 783641640960;
10 // parseInt('zzzzzzzz', 36) = 2821109907455;
11 return `-${Date.now().toString(36)}.${randNum(8e11, 2e12).toString(36)}`;
12}
13
14let prevNow = 0;
15/**

Callers 2

negotiateEventFlagFunction · 0.90
execEnvInitFunction · 0.90

Calls 1

randNumFunction · 0.85

Tested by

no test coverage detected