0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
posthog/cypress/support/random.ts
2022-12-30 11:23:09 +01:00

5 lines
142 B
TypeScript

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