Skip to content

Commit

Permalink
Update duco_hash.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Dec 10, 2024
1 parent 5790211 commit fb8f01f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Arduino_Code/duco_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ void duco_hash_block(duco_hash_state_t * hasher) {
}

void duco_hash_init(duco_hash_state_t * hasher, char const * prevHash) {
for (uint8_t i = 0; i < 40; i++) {
hasher->buffer[i] = prevHash[i];
}
memcpy(hasher->buffer, prevHash, 40);

if (prevHash == (void*)(0xffffffff)) {
// NOTE: THIS IS NEVER CALLED
Expand Down

0 comments on commit fb8f01f

Please sign in to comment.