bpo-32107 - Improve MAC address calculation and fix test_uuid.py (#4600)
``uuid.getnode()`` now preferentially returns universally administered MAC addresses if available, over locally administered MAC addresses. This makes a better guarantee for global uniqueness of UUIDs returned from ``uuid.uuid1()``. If only locally administered MAC addresses are available, the first such one found is returned. Also improve internal code style by being explicit about ``return None`` rather than falling off the end of the function. Improve the test robustness.
B
Barry Warsaw committed
23df2d1304ece169d7e0dfc843dfb8026b413d9f
Parent: 71bd588
Committed by GitHub <noreply@github.com>
on 11/28/2017, 10:26:04 PM