13 for (
int i = 0; i < 16; i += 4) {
14 uint32_t random = esp_random();
15 memcpy(&buffer_[i], &random, 4);
18 uuid_str.reserve(36 + 1);
20 for (
int i = 0; i < 16; i++) {
21 if (i == 4 || i == 6 || i == 8 || i == 10) {
24 uuid_str += String(buffer_[i] >> 4, HEX);
25 uuid_str += String(buffer_[i] & 0x0F, HEX);