qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Pierce" <dpie...@redhat.com>
Subject UUID size
Date Fri, 22 Feb 2013 15:40:27 GMT
In writing the Qpid::Proton::Data class I hit a stumbling block with
handling the UUID node type. The pn_uuid_t type is a 16-byte struct, but
what we get in Ruby is a 32 character string [1] which generates a V4
UUID.

So my question is, what sort of UUID are we trying to represent? With
the size in the pn_uuid_t type we can only hold a V1 UUID. I think we
should expand it to be a 32-bytes to hold larger modern UUIDs.

[1] http://www.ruby-doc.org/stdlib-1.9.3/libdoc/securerandom/rdoc/SecureRandom.html#method-c-uuid

-- 
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/


Mime
View raw message