Fix UUID to stay correct for more than 6 000 years
Add ThreadLocalRandom for Java 6