We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42870d3 commit 102b5dfCopy full SHA for 102b5df
src/main/java/org/terasology/utilities/procedural/FastRandom.java
@@ -153,7 +153,7 @@ public boolean randomBoolean() {
153
public String randomCharacterString(int length) {
154
char[] randomChars = new char[length];
155
for (int i = 0; i < length; i++) {
156
- randomChars[i] = VALID_CHARS[randomInt(VALID_CHARS.length)];
+ randomChars[i] = VALID_CHARS[randomIntAbs(VALID_CHARS.length)];
157
}
158
return new String(randomChars);
159
0 commit comments