Skip to content
Snippets Groups Projects

Use a more random hash to generate user colors

Merged Nicolas Werner requested to merge more-random-colors into master
+ 1
1
@@ -642,7 +642,7 @@ utils::linkColor()
uint32_t
utils::hashQString(const QString &input)
{
auto h = QCryptographicHash::hash(input.toUtf8(), QCryptographicHash::Sha1);
auto h = QCryptographicHash::hash(input.toUtf8(), QCryptographicHash::Sha1);
return (h[0] << 24) ^ (h[1] << 16) ^ (h[2] << 8) ^ h[3];
}
Loading