0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/cypress/support/random.ts

5 lines
142 B
TypeScript
Raw Permalink Normal View History

export function randomString(prefix = ''): string {
const uuid = (): number => Cypress._.random(0, 1e6)
return `${prefix}${uuid()}`
}