]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98415: Fix uuid.getnode() ifconfig implementation (#98423)
authorChaim Sanders <csanders-git@users.noreply.github.com>
Wed, 2 Nov 2022 18:41:20 +0000 (11:41 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 18:41:20 +0000 (19:41 +0100)
commite3ec272f57c3948834a6159cf2604978d3db67a0
treef51493a96f08ed69ad6571ea9c35aec27b334ae1
parent3d889dc0a0efa6fcbd984ece365c9ac08d2cd4a9
gh-98415: Fix uuid.getnode() ifconfig implementation (#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().

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]