diff options
author | Jack Lloyd <[email protected]> | 2022-02-04 18:21:11 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 08:52:17 -0500 |
commit | bfa36e60338538a3563f542e0ac76d21b6ad7019 (patch) | |
tree | eab4f996e829a6f9cbf0b65936a457d7c7dd538c /src/cli/cli_rng.cpp | |
parent | fbb7c5fba1bcde2460dda48c1423a23b3b3062bf (diff) |
Fix clang-tidy readability-container-size-empty warnings
Diffstat (limited to 'src/cli/cli_rng.cpp')
-rw-r--r-- | src/cli/cli_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/cli_rng.cpp b/src/cli/cli_rng.cpp index 064286d55..ee441cf28 100644 --- a/src/cli/cli_rng.cpp +++ b/src/cli/cli_rng.cpp @@ -50,7 +50,7 @@ cli_make_rng(const std::string& rng_type, const std::string& hex_drbg_seed) else rng = std::make_unique<Botan::AutoSeeded_RNG>(); - if(drbg_seed.size() > 0) + if(!drbg_seed.empty()) rng->add_entropy(drbg_seed.data(), drbg_seed.size()); return rng; } |