diff --git a/src/App/Services/PasswordGenerationService.cs b/src/App/Services/PasswordGenerationService.cs index 7f19ad71a..78b55f1ea 100644 --- a/src/App/Services/PasswordGenerationService.cs +++ b/src/App/Services/PasswordGenerationService.cs @@ -168,7 +168,7 @@ namespace Bit.App.Services break; } - var randomCharIndex = Next(positionChars.Length - 1); + var randomCharIndex = Next(positionChars.Length); password.Append(positionChars[randomCharIndex]); }