Skip to content

Commit

Permalink
Update test/siphash32.cpp, siphash64.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 24, 2024
1 parent e8ccac2 commit b40d7ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/siphash32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int main()

boost::hash2::siphash_32 h( k, 8 );

hash_append_range( h, in, in + i );
hash_append_range( h, {}, in, in + i );

BOOST_TEST_EQ( h.result(), vectors_sip32[ i ] );
}
Expand All @@ -123,7 +123,7 @@ int main()
{
boost::hash2::siphash_32 h( k, 8 );

hash_append_range( h, in.begin(), in.end() );
hash_append_range( h, {}, in.begin(), in.end() );

BOOST_TEST_EQ( h.result(), vectors_sip32[ i ] );

Expand All @@ -138,7 +138,7 @@ int main()
{
boost::hash2::siphash_32 h( k, 8 );

hash_append_range( h, in.begin(), in.end() );
hash_append_range( h, {}, in.begin(), in.end() );

BOOST_TEST_EQ( h.result(), vectors_sip32[ i ] );

Expand Down
6 changes: 3 additions & 3 deletions test/siphash64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int main()

boost::hash2::siphash_64 h( k, 16 );

hash_append_range( h, in, in + i );
hash_append_range( h, {}, in, in + i );

BOOST_TEST_EQ( h.result(), vectors_sip64[ i ] );
}
Expand All @@ -123,7 +123,7 @@ int main()
{
boost::hash2::siphash_64 h( k, 16 );

hash_append_range( h, in.begin(), in.end() );
hash_append_range( h, {}, in.begin(), in.end() );

BOOST_TEST_EQ( h.result(), vectors_sip64[ i ] );

Expand All @@ -138,7 +138,7 @@ int main()
{
boost::hash2::siphash_64 h( k, 16 );

hash_append_range( h, in.begin(), in.end() );
hash_append_range( h, {}, in.begin(), in.end() );

BOOST_TEST_EQ( h.result(), vectors_sip64[ i ] );

Expand Down

0 comments on commit b40d7ef

Please sign in to comment.