Skip to content

generateRandomUDID

generateRandomUDID(): string

Defined in: packages/api-client/src/core/utils/anonymousId.ts:13

Generate a UUID v4–shaped random identifier.

Pure function, no platform dependencies — uses Math.random. Output matches the format historically produced by the legacy udid.ts: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx.

string