Lines Matching refs:uuid
120 bool GetUUID(napi_env env, bool entropyCache, UUID &uuid) in GetUUID() argument
124 uuid = g_uuidCache.front(); in GetUUID()
132 bool res = GenerateUuid(uuid.elements, sizeof(uuid.elements)); in GetUUID()
137 g_uuidCache.push(uuid); in GetUUID()
138 res = GenerateUuid(uuid.elements, sizeof(uuid.elements)); in GetUUID()
149 UUID uuid; in GetStringUUID() local
151 if (!GetUUID(env, entropyCache, uuid)) { in GetStringUUID()
154 uuidString = GetFormatUUID(uuid); in GetStringUUID()
159 std::string GetFormatUUID(const UUID &uuid) in GetFormatUUID() argument
162 for (size_t i = 0; i < sizeof(uuid.elements); i++) { in GetFormatUUID()
163 unsigned char value = uuid.elements[i]; in GetFormatUUID()
180 UUID uuid; in GetBinaryUUID() local
181 if (!GetUUID(env, entropyCache, uuid)) { in GetBinaryUUID()
186 size_t bufferSize = sizeof(uuid.elements); in GetBinaryUUID()
188 if (memcpy_s(data, bufferSize, uuid.elements, bufferSize) != EOK) { in GetBinaryUUID()