Improve model string generation to be more unique
Registered by
pr3ddi
The model is not unique on two machines with the same operating system and version.
For example, you could replace platform.platform() with ...
import uuid
mac_int = uuid.getnode( ) # get mac address
mac_hex = format( mac_int, 'x') # convert mac to hex
model_uuid = uuid.uuid3( uuid.NAMESPACE_OID, mac_hex) # generate md5 hash
model = model_uuid.hex # convert uuid to hex string
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- pr3ddi
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
(?)