]> 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:22:19 +0000 (12:22 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 19:22:19 +0000 (12:22 -0700)
commitc23862fc6c3195eccc3cd71e45d7b336dc0d5d50
treea5ed7fcbe4a0a2d5ccf7c91c8a59d0c56e511ee1
parente07086db03d2dc1cd2e2a24f6c9c0ddd422b4cf0
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]