We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf8521d commit 941a5c8Copy full SHA for 941a5c8
1 file changed
src/sqlancer/Randomly.java
@@ -70,7 +70,8 @@ private String getFromStringCache() {
70
return String.valueOf(Randomly.fromList(cachedLongs));
71
} else if (Randomly.getBoolean() && !cachedDoubles.isEmpty()) {
72
return String.valueOf(Randomly.fromList(cachedDoubles));
73
- } else if (Randomly.getBoolean() && !cachedBytes.isEmpty()) {
+ } else if (Randomly.getBoolean() && !cachedBytes.isEmpty()
74
+ && stringGenerationStrategy == StringGenerationStrategy.SOPHISTICATED) {
75
return new String(Randomly.fromList(cachedBytes));
76
} else if (!cachedStrings.isEmpty()) {
77
String randomString = Randomly.fromList(cachedStrings);
0 commit comments