()
| 25 | private static final ThreadLocal<Random> rng = new ThreadLocal<>(); |
| 26 | |
| 27 | public static Random random() { |
| 28 | Random ret = rng.get(); |
| 29 | if (ret == null) { |
| 30 | ret = new Random(rand.nextLong()); |
| 31 | rng.set(ret); |
| 32 | } |
| 33 | return ret; |
| 34 | } |
| 35 | |
| 36 | public static final long FNV_offset_basis_64 = 0xCBF29CE484222325L; |
| 37 | public static final long FNV_prime_64 = 1099511628211L; |
no test coverage detected