Public bug reported:

Generating a version 3 uuid on Ubuntu appears to be producing
inconsistent output compared to online checkers and versions of this
tool compiled on different OSs.  E.g.

On U18.04.5
uuidgen --namespace @dns --name 'foo' -m  (version 3 using md5)
3f46ae03-c654-36b0-855d-cd0aa042c9f2

uuidgen --namespace @dns --name 'foo' -s (version 5 with sha1)
b84ed8ed-a7b1-502f-83f6-90132e68adef

On Gentoo,
uuidgen --namespace @dns --name 'foo' -m
3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d rather than 855d)

uuidgen --namespace @dns --name 'foo' -s
b84ed8ed-a7b1-502f-83f6-90132e68adef

On raspbian
uuidgen --namespace @dns --name 'foo' -m
3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d same as on gentoo)

uuidgen --namespace @dns --name 'foo' -s
b84ed8ed-a7b1-502f-83f6-90132e68adef

Looking at this https://github.com/karelzak/util-linux/issues/683

gave me pause to see if I could replicate this similar problem
On Ubuntu, using the python library I get
python -c "import uuid ; 
print(uuid.uuid3(uuid.UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'foo'))"
3f46ae03-c654-36b0-a55d-cd0aa042c9f2

The same result is returned on raspbian and Gentoo.

This makes me wonder if there's a problem with the uuidgen tool, as
python is giving me consistent results on all three OS's and agrees with
the uuidgen tool in Gentoo and Raspbian and also agrees with the output
of this webtool

https://uuidonline.com/

and this

https://www.uuidtools.com/v3

Ubuntu is producing a different result.

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Generating a version 3 uuid on Ubuntu appears to be producing
  inconsistent output compared to online checkers and versions of this
  tool compiled on different OSs.  E.g.
  
  On U18.04.5
  uuidgen --namespace @dns --name 'foo' -m  (version 3 using md5)
  3f46ae03-c654-36b0-855d-cd0aa042c9f2
  
  uuidgen --namespace @dns --name 'foo' -s (version 5 with sha1)
  b84ed8ed-a7b1-502f-83f6-90132e68adef
  
- On Gentoo, 
+ On Gentoo,
  uuidgen --namespace @dns --name 'foo' -m
- 3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55a rather than 855d)
+ 3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d rather than 855d)
  
  uuidgen --namespace @dns --name 'foo' -s
  b84ed8ed-a7b1-502f-83f6-90132e68adef
  
  On raspbian
  uuidgen --namespace @dns --name 'foo' -m
- 3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55a same as on gentoo)
+ 3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d same as on gentoo)
  
  uuidgen --namespace @dns --name 'foo' -s
  b84ed8ed-a7b1-502f-83f6-90132e68adef
  
  Looking at this https://github.com/karelzak/util-linux/issues/683
  
- gave me pause to see if I could replicate this similar problem 
+ gave me pause to see if I could replicate this similar problem
  On Ubuntu, using the python library I get
  python -c "import uuid ; 
print(uuid.uuid3(uuid.UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'foo'))"
  3f46ae03-c654-36b0-a55d-cd0aa042c9f2
  
  The same result is returned on raspbian and Gentoo.
  
  This makes me wonder if there's a problem with the uuidgen tool, as
  python is giving me consistent results on all three OS's and agrees with
  the uuidgen tool in Gentoo and Raspbian and also agrees with the output
  of this webtool
  
  https://uuidonline.com/
  
  and this
  
  https://www.uuidtools.com/v3
  
  Ubuntu is producing a different result.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1892516

Title:
  uuidgen possible problem with v3 uuids

Status in util-linux package in Ubuntu:
  New

Bug description:
  Generating a version 3 uuid on Ubuntu appears to be producing
  inconsistent output compared to online checkers and versions of this
  tool compiled on different OSs.  E.g.

  On U18.04.5
  uuidgen --namespace @dns --name 'foo' -m  (version 3 using md5)
  3f46ae03-c654-36b0-855d-cd0aa042c9f2

  uuidgen --namespace @dns --name 'foo' -s (version 5 with sha1)
  b84ed8ed-a7b1-502f-83f6-90132e68adef

  On Gentoo,
  uuidgen --namespace @dns --name 'foo' -m
  3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d rather than 855d)

  uuidgen --namespace @dns --name 'foo' -s
  b84ed8ed-a7b1-502f-83f6-90132e68adef

  On raspbian
  uuidgen --namespace @dns --name 'foo' -m
  3f46ae03-c654-36b0-a55d-cd0aa042c9f2   (note a55d same as on gentoo)

  uuidgen --namespace @dns --name 'foo' -s
  b84ed8ed-a7b1-502f-83f6-90132e68adef

  Looking at this https://github.com/karelzak/util-linux/issues/683

  gave me pause to see if I could replicate this similar problem
  On Ubuntu, using the python library I get
  python -c "import uuid ; 
print(uuid.uuid3(uuid.UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'foo'))"
  3f46ae03-c654-36b0-a55d-cd0aa042c9f2

  The same result is returned on raspbian and Gentoo.

  This makes me wonder if there's a problem with the uuidgen tool, as
  python is giving me consistent results on all three OS's and agrees
  with the uuidgen tool in Gentoo and Raspbian and also agrees with the
  output of this webtool

  https://uuidonline.com/

  and this

  https://www.uuidtools.com/v3

  Ubuntu is producing a different result.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1892516/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to