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:
parent
a8b84da17f
commit
7ed015aeb1
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user