libnm: implement variant3 UUIDs according to rfc4122

System Internals / NetworkManager - Thomas Haller [redhat.com] - 4 December 2014 10:02 UTC

Compare the results: perl -e 'use UUID::Tiny ":std"; print(uuid_to_string(create_uuid(UUID_V3, UUID_NS_DNS, "test"))."\n");' python -c 'from uuid import *; print(uuid3(UUID("6ba7b810-9dad-11d1-80b4-00c04fd430c8"), "test"))'

e7661c9 libnm: implement variant3 UUIDs according to rfc4122
libnm-core/nm-utils.c | 36 ++++++++++++++++++++++++++++++------
libnm-core/nm-utils.h | 1 +
libnm-core/tests/test-general.c | 24 ++++++++++++++++++++----
3 files changed, 51 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share