Use ThreadLocalRandom when available for StringHelpers #1332

Merged
merged 1 commit into from Oct 11, 2012
Commits on Oct 11, 2012
  1. Use ThreadLocalRandom in StringHelpers.randomString on Java 7.

    Shadowfiend committed Oct 11, 2012
    On Java <7, we use the default SecureRandom, which locks on access.
    ThreadLocalRandom will not lock as it is thread-local (!).