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

Computer UUID Class #2

Open
zethon opened this issue Dec 7, 2020 · 0 comments
Open

Computer UUID Class #2

zethon opened this issue Dec 7, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@zethon
Copy link
Owner

zethon commented Dec 7, 2020

Right now the ComputerUUID class is a stub that simply hashes the computer's hostname and a few other optional things. This class needs to be enhanced to support the following features:

  1. Generate a UUID for a computer. This ID should be the same each time it is generated on the same computer.

  2. The class should accept an arbitrary string that is factored into the generation of the UUID. A sample use-case for this would be when you have two instances of the same program running on the same computer, but perhaps they have two different configuration files. In this case, each instance could have distinct UUIDs the same each time an instance is run. This is the setCustomData() method in the stub implementation.

  3. The class should have a setting such that a new UUID is generated each time the program is ran, but the UUID should be the same within the same process. This is naively (and incorrectly) implemented with the setUniquePerProcess() method.

@zethon zethon added bug Something isn't working enhancement New feature or request labels Dec 7, 2020
@zethon zethon self-assigned this Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant