We've discovered two certificates with the same code in one of our installations.
I know the Certificate module uses the moodlelib/random_string() function to generate a string with characters randomically choosen. However, there's no garantee that this string will be unique - and a unique certificate code is a requirement of our client.
I'm about to create a function that generate unique codes. Has anybody already faced the same issue?