MCPcopy
hub / github.com/streamlit/streamlit / generateUID

Function generateUID

frontend/lib/src/util/utils.ts:594–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592 * Returns UID generated based on current date and Math.random module
593 */
594export function generateUID(): string {
595 return (
596 Math.floor(Date.now() / 1000).toString(36) +
597 Math.random().toString(36).slice(-6)
598 )
599}
600
601/**
602 * Returns stAppEmbeddingId-${this.embeddingId} string,

Callers 2

utils.test.tsFile · 0.90
AppClass · 0.90

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…