30 fd = open(
"/proc/sys/kernel/random/uuid", 0);
31 ASSERT_LOG(fd != 1,
"Cannot open /proc/sys/kernel/random/uuid");
33 std::array<char, 360> uuid;
34 ret = read(fd, uuid.data(), 36);
36 ASSERT_LOG(ret == 36,
"Cannot read UUID from /proc/sys/kernel/random/uuid");
38 std::string uuid_str(uuid.data(), 36);