Get the hardware address on Unix using the _uuid extension module.
()
| 593 | |
| 594 | |
| 595 | def _unix_getnode(): |
| 596 | """Get the hardware address on Unix using the _uuid extension module.""" |
| 597 | if _generate_time_safe: |
| 598 | uuid_time, _ = _generate_time_safe() |
| 599 | return UUID(bytes=uuid_time).node |
| 600 | |
| 601 | def _windll_getnode(): |
| 602 | """Get the hardware address on Windows using the _uuid extension module.""" |