You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2015/06/18 22:15:17 UTC

[12/50] [abbrv] qpid-proton git commit: PROTON-903: align fallback UUID implementation with spec. Patch from Flavio Percoco.

PROTON-903: align fallback UUID implementation with spec. Patch from Flavio Percoco.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/53b91847
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/53b91847
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/53b91847

Branch: refs/heads/kgiusti-python3
Commit: 53b9184719762b44843832a642cc090a63f2d71c
Parents: e32f047
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Jun 9 15:01:36 2015 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Jun 9 15:01:36 2015 +0100

----------------------------------------------------------------------
 proton-c/bindings/python/proton/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/53b91847/proton-c/bindings/python/proton/__init__.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/__init__.py b/proton-c/bindings/python/proton/__init__.py
index a4a0e02..e3cd9e3 100644
--- a/proton-c/bindings/python/proton/__init__.py
+++ b/proton-c/bindings/python/proton/__init__.py
@@ -79,8 +79,8 @@ except ImportError:
     bytes = [rand.randint(0, 255) for i in xrange(16)]
 
     # From RFC4122, the version bits are set to 0100
-    bytes[7] &= 0x0F
-    bytes[7] |= 0x40
+    bytes[6] &= 0x0F
+    bytes[6] |= 0x40
 
     # From RFC4122, the top two bits of byte 8 get set to 01
     bytes[8] &= 0x3F


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org