First time sharing code in public, so go easy on me. I’m working on a unique code generator for URLs when users share workouts. With 5 characters, we have ~1B combinations. Bumping to 6 gives us 55B more!
Thread
You could hash the workout ID + current timestamp or something, and use the first 6 characters of that hash. There's a very small chance that it'll be repeated, but you can add a check for that and just hash it again. It'll probably be much faster too