Works on all platforms. If it doesn't work run these commands in CMD/ command line
Windows: reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v MachineGuid
macOS: ioreg -rd1 -c IOPlatformExpertDevice | grep IOPlatformUUID
Linux: cat /var/lib/dbus/machine-id