mirror of
https://github.com/bitwarden/mobile
synced 2026-01-07 11:03:54 +00:00
dont sub 1 when getting next random value
This commit is contained in:
@@ -168,7 +168,7 @@ namespace Bit.App.Services
|
||||
break;
|
||||
}
|
||||
|
||||
var randomCharIndex = Next(positionChars.Length - 1);
|
||||
var randomCharIndex = Next(positionChars.Length);
|
||||
password.Append(positionChars[randomCharIndex]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user