import { randomInt } from 'node:crypto'

/** Workspace-created trips use nine digits; Synchron-imported trips retain their eight-digit token. */
export function generateRefCode(): string {
  return `HH-${randomInt(100_000_000, 1_000_000_000)}`
}
