Variant 4 random code generator: fixed data size for Blake hash

This commit is contained in:
SChernykh
2019-02-05 19:01:35 +03:00
committed by wowario
parent 870b4138a6
commit 26ff420531
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ static FORCEINLINE void check_data(size_t* data_index, const size_t bytes_needed
{
if (*data_index + bytes_needed > data_size)
{
hash_extra_blake(data, sizeof(data), data);
hash_extra_blake(data, data_size, data);
*data_index = 0;
}
}