mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
dont sub 1 when getting next random value
This commit is contained in:
parent
a8b84da17f
commit
7ed015aeb1
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ namespace Bit.App.Services
|
|||
break;
|
||||
}
|
||||
|
||||
var randomCharIndex = Next(positionChars.Length - 1);
|
||||
var randomCharIndex = Next(positionChars.Length);
|
||||
password.Append(positionChars[randomCharIndex]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue