]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Nov 2022 19:12:31 +0000 (12:12 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 19:12:31 +0000 (12:12 -0700)
commit04ab3574311063ca90c28a5380ee6e5467f8d05d
tree8872e4f21ab90af10e19493b165149a2752939c8
parent46ccb35a400b1abe8c29ad2d7f17295610d768c7
gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)

The uuid.getnode() function has multiple implementations, tested sequentially.
The ifconfig implementation was incorrect and always failed: fix it.

In practice, functions of libuuid library are preferred, if available:
uuid_generate_time_safe(), uuid_create() or uuid_generate_time().

(cherry picked from commit e3ec272f57c3948834a6159cf2604978d3db67a0)

Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Lib/uuid.py
Misc/NEWS.d/next/Core and Builtins/2022-10-19-01-01-08.gh-issue-98415.ZS2eWh.rst [new file with mode: 0644]