A random sequence of strings will always have a possibility of repeating, otherwise it's not really random. RandomStringUtils
is not really random, but it's trying to be as close to random as it can be, which seems contrary to your goal. If you must use randomly generated keys, then you should at least use java.util.UUID.randomUUID because that is made to be used that way.
You may find this link interesting: Generating unique IDs