diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-07-20 01:30:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 01:30:09 +0200 |
commit | 4fbf04413d68446777832b6c980bfac7879903c1 (patch) | |
tree | 8d2a64e019c4f436c89e56633b9db3d7c6ae9fef /src/UUID.cpp | |
parent | cBlockArea: Write all present data types by default (#4252) (diff) | |
download | cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.gz cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.bz2 cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.lz cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.xz cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.zst cuberite-4fbf04413d68446777832b6c980bfac7879903c1.zip |
Diffstat (limited to 'src/UUID.cpp')
-rw-r--r-- | src/UUID.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |