MCPcopy Create free account
hub / github.com/apache/mesos / createUUID

Function createUUID

src/common/protobuf_utils.cpp:594–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593
594UUID createUUID(const Option<id::UUID>& uuid)
595{
596 UUID uuid_;
597
598 if (uuid.isSome()) {
599 uuid_.set_value(uuid->toBytes());
600 } else {
601 uuid_.set_value(id::UUID::random().toBytes());
602 }
603
604 return uuid_;
605}
606
607
608/**

Callers 14

foreachpairFunction · 0.85
foreachpairFunction · 0.85
applyOperationMethod · 0.85
dropOperationMethod · 0.85
updateOperationStatusMethod · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85
SlaveMethod · 0.85

Calls 3

randomFunction · 0.85
toBytesMethod · 0.80
isSomeMethod · 0.45

Tested by 4

TEST_FFunction · 0.68
TESTFunction · 0.68
TEST_PFunction · 0.68