Activity log for bug #1892516

Date Who What changed Old value New value Message
2020-08-21 15:07:24 Dave Ford bug added bug
2020-08-21 15:08:23 Dave Ford 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 a55a 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) 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. 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.