[issue32107] test_uuid uses the incorrect bitmask

Barry A. Warsaw report at bugs.python.org
Sun Nov 26 14:19:10 EST 2017


Barry A. Warsaw <barry at python.org> added the comment:

On Nov 26, 2017, at 14:07, Serhiy Storchaka <report at bugs.python.org> wrote:
> 
> Universally/locally administered MAC addresses doesn't have relation to this issue. My assumption was about the multicast bit (1<<40).

AFAICT, the multicast bit is only required to be set on random MAC.

> If my assumption was correct, the test is correct, and only the comment should be fixed. If it was wrong, the test should be removed. That's all.

I don’t understand.  Are you saying that _find_mac() should return whatever random MAC is found first, as the original code does?  That doesn’t seem right either, since as the MacBook Pro case shows, it’s entirely possible to get a MAC address that is the same on every single laptop.

----------

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


More information about the Python-bugs-list mailing list