Skip to content

Commit

Permalink
Fix to randomCharacterString().
Browse files Browse the repository at this point in the history
  • Loading branch information
immortius committed Oct 16, 2013
1 parent 42870d3 commit 102b5df
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -153,7 +153,7 @@ public boolean randomBoolean() {
public String randomCharacterString(int length) {
char[] randomChars = new char[length];
for (int i = 0; i < length; i++) {
randomChars[i] = VALID_CHARS[randomInt(VALID_CHARS.length)];
randomChars[i] = VALID_CHARS[randomIntAbs(VALID_CHARS.length)];
}
return new String(randomChars);
}
Expand Down

0 comments on commit 102b5df

Please sign in to comment.