aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/pwgen
diff options
context:
space:
mode:
authorMatthew Wong <wongma7@outlook.com>2015-08-25 13:47:13 -0400
committerMatthew Wong <wongma7@outlook.com>2015-08-25 13:47:13 -0400
commitdc732cb573288a136a66fd74c0b8a48718907e52 (patch)
treec492d20f24a10e598ee0099de5162d5bfa7743d9 /app/src/main/java/com/zeapo/pwdstore/pwgen
parent327945f3b8aa56f77559a25bc9160dae0a0cc6d2 (diff)
downloadHardenedPass-dc732cb573288a136a66fd74c0b8a48718907e52.tar.gz
HardenedPass-dc732cb573288a136a66fd74c0b8a48718907e52.zip
Generated password EditText to TextView + fix generation bug
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/pwgen')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/pwgen/pw_rand.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/pwgen/pw_rand.java b/app/src/main/java/com/zeapo/pwdstore/pwgen/pw_rand.java
index 1f4acdec..945aaf71 100644
--- a/app/src/main/java/com/zeapo/pwdstore/pwgen/pw_rand.java
+++ b/app/src/main/java/com/zeapo/pwdstore/pwgen/pw_rand.java
@@ -19,7 +19,7 @@ public class pw_rand {
* @return the generated password
*/
public static String rand(int size, int pwFlags) {
- String password = "";
+ String password;
char cha;
int i, featureFlags, num;
String val;
@@ -36,6 +36,7 @@ public class pw_rand {
bank += pwgen.SYMBOLS_STR;
}
do {
+ password = "";
featureFlags = pwFlags;
i = 0;
while (i < size) {