Perform aggregate zero-init instead of .fill(0) where appropriate.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m50s
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m50s
Simpler and more consistent code.
This commit is contained in:
@@ -99,8 +99,7 @@ TEST(HmacTests, LongKeyTest)
|
||||
|
||||
TEST(HmacTests, UninitializedHmacTest)
|
||||
{
|
||||
std::array<uint8_t, 10> in;
|
||||
in.fill(0);
|
||||
std::array<uint8_t, 10> in = {};
|
||||
|
||||
{
|
||||
Hmac<Md5Hasher> hmac;
|
||||
|
||||
Reference in New Issue
Block a user