diff --git a/common/src/daudio_util.cpp b/common/src/daudio_util.cpp index b4e91177fe1aa42000a2505e3f04b2694dc49ed2..25b6c48543f201653764b23601171923fae040b2 100644 --- a/common/src/daudio_util.cpp +++ b/common/src/daudio_util.cpp @@ -155,7 +155,10 @@ std::string GetRandomID() static std::uniform_int_distribution dist(0ULL, 0xFFFFFFFFFFFFFFFFULL); uint64_t ab = dist(rd); uint64_t cd = dist(rd); - uint32_t a, b, c, d; + uint32_t a = 0; + uint32_t b = 0; + uint32_t c = 0; + uint32_t d = 0; std::stringstream ss; ab = (ab & 0xFFFFFFFFFFFF0FFFULL) | 0x0000000000004000ULL; cd = (cd & 0x3FFFFFFFFFFFFFFFULL) | 0x8000000000000000ULL;