mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 12:04:36 -04:00
use binary mode for hashes, bump version to 0.4.5
This commit is contained in:
parent
436a0776c0
commit
5dda0a1e86
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.4.4
|
||||
0.4.5
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue