Im having issues with using the string generator multiple times. Somehow if i set some "properties"/use some methods for the first string it works as it should.... but if try generating a second string afterwards, it uses the "properties"/methods for the new string and merges them with the newly set generator "properies"
Here an Example for that:
I found a Workaround for this by adding StringGenerator = JRand.string(); between the lines where the strings are generated, but ist there an easyer way for that like StringGenerator.flush() or is that just an issue with that Library? Or even better, so that .gen() empties out the pool every time it's used.
Im having issues with using the string generator multiple times. Somehow if i set some "properties"/use some methods for the first string it works as it should.... but if try generating a second string afterwards, it uses the "properties"/methods for the new string and merges them with the newly set generator "properies" Here an Example for that:
This gives me this:
String 1: THS String 2: (PL
I found a Workaround for this by adding
StringGenerator = JRand.string();
between the lines where the strings are generated, but ist there an easyer way for that likeStringGenerator.flush()
or is that just an issue with that Library? Or even better, so that.gen()
empties out the pool every time it's used.