Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve uuid generation on Linux #1867

Merged
merged 2 commits into from
May 9, 2022
Merged

Conversation

flakey5
Copy link
Contributor

@flakey5 flakey5 commented Apr 28, 2022

What does this PR do?

Makes use of Linux's uuid header to generate a uuid instead of reading from /dev/urandom.

How does this PR change Premake's behavior?

No breaking changes or behavior differences should occur.

Anything else we should know?

This does create the requirement of having the libuuid/uuid-dev package in order to build

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

Copy link
Member

@samsinsane samsinsane left a comment

Choose a reason for hiding this comment

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

I think this is fine, it looks like UUID has been available since June 2009, I imagine it's in all of the current LTS releases by now.

premake5.lua Outdated Show resolved Hide resolved
@flakey5
Copy link
Contributor Author

flakey5 commented Apr 30, 2022

One more note I've just realized: the 6.x branch uses the same generation code, so this could also be applied there. If y'all want I can do another pr implementing it. It would be basically the same code change and the only real difference I can see would be in the build files

@nickclark2016
Copy link
Member

Feel free to stick out a PR for v6. Given UUID has been around since 2009, I think we're good. That was 13 years ago.

@nickclark2016
Copy link
Member

Merging.

@nickclark2016 nickclark2016 merged commit 190ee8b into premake:master May 9, 2022
This pull request was closed.
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.

3 participants