1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-25 16:47:55 +01:00

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]);
} }