in src/Services/Infection/Infection.WebApi/Services/InfectionService.cs [179:195]
private string GenerateOneTimePassword(int maxLength)
{
// Only uppercase letters and numbers. In order to avoid confusion, don’t include the letters B, O, I and the numbers 8, 0, 1.
// Declare a string variable which stores all chars
var baseString = "2345679ACDEFGHJKLMNPQRSTUVWXYZ";
var chars = new char[maxLength];
var length = baseString.Length;
var rnd = new Random();
for (var i = 0; i < maxLength; i++)
{
chars[i] = baseString[Convert.ToInt32((length - 1) * rnd.NextDouble())];
}
return new string(chars);
}