Perform aggregate zero-init instead of .fill(0) where appropriate.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m50s

Simpler and more consistent code.
This commit is contained in:
hashlag
2026-02-05 00:40:55 +03:00
parent ed22d29af0
commit 95e74db6ec
4 changed files with 17 additions and 38 deletions

View File

@@ -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;