From 4fbf04413d68446777832b6c980bfac7879903c1 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Fri, 20 Jul 2018 00:30:09 +0100 Subject: Make offline UUIDs consistent with vanilla. (#4178) Fixes #4177 This is a breaking change to existing Cuberite permissions settings. --- src/UUID.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/UUID.cpp') diff --git a/src/UUID.cpp b/src/UUID.cpp index c04e585d7..9ed7dc492 100644 --- a/src/UUID.cpp +++ b/src/UUID.cpp @@ -270,10 +270,8 @@ cUUID cUUID::GenerateVersion3(const AString & a_Name) // Insert version number UUID.m_UUID[6] = (UUID.m_UUID[6] & 0x0f) | 0x30; - /* Insert variant number - Note that by using 1000 instead of 10xx we are losing 2 bits - but this is needed for compatibility with the old string uuid generator */ - UUID.m_UUID[8] = (UUID.m_UUID[8] & 0x0f) | 0x80; + // Insert variant number + UUID.m_UUID[8] = (UUID.m_UUID[8] & 0x3f) | 0x80; return UUID; } -- cgit v1.2.3