Lines Matching refs:uuid
42 * Get v4 uuid.
44 * @return std::string, uuid.
49 static const int8_t VERSION_INDEX = 6; // Obtain the seventh byte of the randomly generated UUID, that is uuid[6].
52 unsigned char uuid[UUID_LENGTH] = {0};
53 int re = RAND_bytes(uuid, sizeof(uuid));
60 * M is uuid version: 4
63 uuid[VERSION_INDEX] = (uuid[VERSION_INDEX] & 0x0F) | 0x40;
69 uuid[N_INDEX] = (uuid[N_INDEX] & 0x0F) | (num << CHAR_LOW_WIDTH);
75 for (size_t i = 0; i < sizeof(uuid); i++) {
76 unsigned char value = uuid[i];