mirror of
https://github.com/wownero/wownero.git
synced 2026-11-18 22:35:33 +01:00
Variant 4 random code generator: fixed data size for Blake hash
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user