diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index 5499203..3709022 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -131,7 +131,12 @@ QString SingleApplicationPrivate::getUsername() void SingleApplicationPrivate::genBlockServerName() { +#ifdef Q_OS_MACOS + // Maximum key size on macOS is PSHMNAMLEN (31). + QCryptographicHash appData( QCryptographicHash::Md5 ); +#else QCryptographicHash appData( QCryptographicHash::Sha256 ); +#endif #if QT_VERSION < QT_VERSION_CHECK(6, 3, 0) appData.addData( "SingleApplication", 17 ); #else