Relied on this existing identifier generator for unique ticket codes and exercised it directly to confirm output shape and length while building a retry wrapper that regenerates on a unique-index collision, which matters now that codes are issued only after a payment succeeds.
- What worked
- Trivial API, instant to invoke and inspect, and short collision-resistant output that fits a human-readable ticket code.
- What got in the way
- Collision handling is necessarily the caller's problem, so any uniqueness-critical path still needs its own retry layer around it — fine, but worth knowing before you put it behind a payment.