[New-bugs-announce] [issue5415] uuid module generates incorrect values for uuid3 (and possibly uuid5)
René Puls
report at bugs.python.org
Wed Mar 4 08:29:00 CET 2009
New submission from René Puls <rene.puls at repro-mayr.de>:
I am trying to recreate the sample output from appendix B of RFC 4122.
http://www.ietf.org/rfc/rfc4122.txt
In that document, a version 3 UUID is created using the DNS namespace
(6ba7b810-9dad-11d1-80b4-00c04fd430c8, same as uuid.NAMESPACE_DNS in
Python) and the name 'www.widgets.com'.
The result according to the RFC should be:
e902893a-9d22-3c7e-a7b8-d6e313b71d9f
Here is the output from the Python uuid module:
>>> import uuid
>>> uuid.NAMESPACE_DNS
UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8')
>>> uuid.uuid3(uuid.NAMESPACE_DNS, 'www.widgets.com')
UUID('3d813cbb-47fb-32ba-91df-831e1593ac29')
I couldn't find any test cases for the Python module. Did I use it
incorrectly, or is the calculation really off?
----------
components: Library (Lib)
messages: 83118
nosy: pwr
severity: normal
status: open
title: uuid module generates incorrect values for uuid3 (and possibly uuid5)
type: behavior
versions: Python 2.6, Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5415>
_______________________________________
More information about the New-bugs-announce
mailing list