I'm implementing a referral program on a site and was wondering if there was a best practice in terms of what the referral codes should look like. I assume since we don't want overly long referral codes, we can't just use GUID or anything like that, so I'll have to do checks on the referral codes generated to ensure uniqueness?
closed as unclear what you're asking by MichaelT, Snowman, durron597, Ixrec, Bart van Ingen Schenau Sep 22 at 17:22
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
I am not sure what exactly you are doing so I will give more than one solution.
1) If you are just worried about length, you could use something called ShortGUID. developed for C#.
2) if you are looking for a more readable format which I assume you might you could use todays date/time and number count that recycles everyday. (or anything using the datetime)
3) If these are referals via web you can use unique URLs like a PURL.