mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-27 16:26:50 +01:00
5 lines
142 B
TypeScript
5 lines
142 B
TypeScript
export function randomString(prefix = ''): string {
|
|
const uuid = (): number => Cypress._.random(0, 1e6)
|
|
return `${prefix}${uuid()}`
|
|
}
|