diff options
Diffstat (limited to 'src/lib/hash/blake2/blake2b.cpp')
-rw-r--r-- | src/lib/hash/blake2/blake2b.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hash/blake2/blake2b.cpp b/src/lib/hash/blake2/blake2b.cpp index 1d5b8b718..9f825acf5 100644 --- a/src/lib/hash/blake2/blake2b.cpp +++ b/src/lib/hash/blake2/blake2b.cpp @@ -209,7 +209,7 @@ HashFunction* BLAKE2b::clone() const std::unique_ptr<HashFunction> BLAKE2b::copy_state() const { - return std::unique_ptr<HashFunction>(new BLAKE2b(*this)); + return std::make_unique<BLAKE2b>(*this); } void BLAKE2b::key_schedule(const uint8_t key[], size_t length) |