Fixed id calc

This commit is contained in:
Andrew nuark G 2020-12-15 16:34:35 +07:00
parent 3ca5e0d537
commit ecd5d3ae4e

View file

@ -4,7 +4,7 @@ cargo_entity::cargo_entity(const QString &title, int volume) : _title(title), _v
this->_id = volume;
auto hash = QCryptographicHash::hash(title.toLocal8Bit(), QCryptographicHash::Md5);
for (auto bit : hash) {
this->_id |= bit;
this->_id += bit;
}
}