Fix bugs with RTL languages and showing/entering backup code.

Fixes #10193
Fixes #10195
This commit is contained in:
Sgn-32
2020-11-13 19:35:25 +01:00
committed by Cody Henthorne
parent 45e11f6291
commit c36f9646f9
4 changed files with 9 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ public class BackupUtil {
new SecureRandom().nextBytes(random);
for (int i=0;i<30;i+=5) {
result[i/5] = String.format("%05d", ByteUtil.byteArray5ToLong(random, i) % 100000);
result[i/5] = String.format(Locale.ENGLISH, "%05d", ByteUtil.byteArray5ToLong(random, i) % 100000);
}
return result;