Skip to content

[3.10] gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)#99020

Merged
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-e3ec272-3.10
Nov 2, 2022
Merged

[3.10] gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)#99020
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-e3ec272-3.10

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 2, 2022

Copy link
Copy Markdown
Contributor

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 e3ec272)

Co-authored-by: Chaim Sanders csanders-git@users.noreply.github.com
Co-authored-by: Dong-hee Na donghee.na92@gmail.com

…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 e3ec272)

Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington miss-islington merged commit c23862f into python:3.10 Nov 2, 2022
@miss-islington miss-islington deleted the backport-e3ec272-3.10 branch November 2, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants