Fixed entropy calculation for sigil.

This commit is contained in:
tastytea 2019-01-01 16:40:34 +01:00
parent 2fb09294e4
commit b518d5ed12
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(identiconpp
VERSION 0.3.4
VERSION 0.3.5
LANGUAGES CXX
)

View File

@ -54,7 +54,7 @@ void Identiconpp::check_entropy(const string &digest, algorithm type)
}
case algorithm::sigil:
{
entropy_provided = digest.length() / 2 * 8;
entropy_provided = digest.length() * 4;
entropy_required = (_columns / 2 + _columns % 2) * _rows + 8;
break;
}