Similar to UUID#randomUUID() but: Uses ThreadLocalRandom instead of SecureRandom Doesn't return a UUID4, in fact it doesn't follow the UUID structure at all. It's just two random longs.
()
| 39 | * </ul> |
| 40 | **/ |
| 41 | public static UUID dirtyUUID() { |
| 42 | var random = ThreadLocalRandom.current(); |
| 43 | return new UUID(random.nextLong(), random.nextLong()); |
| 44 | } |
| 45 | |
| 46 | /** Generates a time-based UUID (similar to Flake IDs), which is preferred when generating an ID to be indexed into a Lucene index as |
| 47 | * primary key. The id is opaque and the implementation is free to change at any time! */ |
no outgoing calls