diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-02-07 21:11:50 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-02-07 21:11:50 +0100 |
commit | 1b3406cdbb6c620cca975b0bc32b43b60fa246cb (patch) | |
tree | 159b4be35bfcc995ba5a8dc2638335bdc998ca9a /src/main/java/de/pixart/messenger/utils | |
parent | ba4acfd2c11b55373cc856ee48ffb9a56030e6f4 (diff) |
provide the same fab submenu for both tabs. rename tab to bookmark
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/CryptoHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java index 2104349d8..5d1e7980c 100644 --- a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java +++ b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java @@ -63,7 +63,8 @@ public final class CryptoHelper { } public static String pronounceable(SecureRandom random) { - char[] output = new char[random.nextInt(4) * 2 + 5]; + final int rand = random.nextInt(4); + char[] output = new char[rand * 2 + (5 - rand)]; boolean vowel = random.nextBoolean(); for (int i = 0; i < output.length; ++i) { output[i] = vowel ? VOWELS[random.nextInt(VOWELS.length)] : CONSONANTS[random.nextInt(CONSONANTS.length)]; |