MCPcopy Create free account
hub / github.com/crate/crate / dirtyUUID

Method dirtyUUID

server/src/main/java/org/elasticsearch/common/UUIDs.java:41–44  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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! */

Callers 15

addForeignTableMethod · 0.95
forSubPlanMethod · 0.95
buildMethod · 0.95
quickExecMethod · 0.95
parseMethod · 0.95
analyzeMethod · 0.95
bindMethod · 0.95
simpleQueryMethod · 0.95
bulkExecMethod · 0.95
singleExecMethod · 0.95
failMethod · 0.95

Calls

no outgoing calls

Tested by 1

addForeignTableMethod · 0.76