[issue32107] test_uuid uses the incorrect bitmask

Serhiy Storchaka report at bugs.python.org
Thu Nov 23 11:24:12 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Wait, now I understand the purpose of the current test! There is just a typo in a comment, should be 41 instead of 47. The test itself is correct. If the address is obtained from network cards, it should have the 41 bit clear. If it is generated randomly, it should have the 41 bit set, to avoid conflicts with addresses obtained from network cards. There is nothing about the 42 bit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32107>
_______________________________________


More information about the Python-bugs-list mailing list