UUIDs must follow network byte order (big endian) according to [rfc-4122](http://www.ietf.org/rfc/rfc4122.txt) . The initial code looks like it was written for little endian architectures.
UUIDs must follow network byte order (big endian) according to rfc-4122 .
The initial code looks like it was written for little endian architectures.