dont sub 1 when getting next random value

This commit is contained in:
Kyle Spearrin 2019-01-13 22:10:45 -05:00
parent a8b84da17f
commit 7ed015aeb1

View file

@ -168,7 +168,7 @@ namespace Bit.App.Services
break; break;
} }
var randomCharIndex = Next(positionChars.Length - 1); var randomCharIndex = Next(positionChars.Length);
password.Append(positionChars[randomCharIndex]); password.Append(positionChars[randomCharIndex]);
} }