fix: use loop variable instead of global ticker in GenerateFreshName #40

Merged
mvhutz merged 1 commits from fix/fresh-name-generation into main 2026-01-18 20:58:24 +00:00

1 Commits

Author SHA1 Message Date
f31de50abc fix: use loop variable instead of global ticker in GenerateFreshName
The function used a global `ticker` variable but never incremented it
inside the loop, causing an infinite loop if the first generated name
was already in the used set.

This fix removes the global state and uses the loop variable `i`
directly, which is cleaner and avoids the bug.
2026-01-18 15:57:28 -05:00