use binary mode for hashes, bump version to 0.4.5

This commit is contained in:
matcool 2022-10-11 17:31:16 -03:00
parent 436a0776c0
commit 5dda0a1e86
No known key found for this signature in database
GPG key ID: BF58756086D7AB1C
2 changed files with 2 additions and 2 deletions
VERSION
loader/hash

View file

@ -1 +1 @@
0.4.4
0.4.5

View file

@ -9,6 +9,6 @@
static std::string calculateHash(std::string const& path) {
std::vector<uint8_t> s(picosha3::bits_to_bytes(256));
auto sha3_256 = picosha3::get_sha3_generator<256>();
std::ifstream file(path);
std::ifstream file(path, std::ios::binary);
return sha3_256.get_hex_string(file);
}