aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/shake/shake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/shake/shake.cpp')
-rw-r--r--src/lib/hash/shake/shake.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hash/shake/shake.cpp b/src/lib/hash/shake/shake.cpp
index 6740581c6..01f1d9dfa 100644
--- a/src/lib/hash/shake/shake.cpp
+++ b/src/lib/hash/shake/shake.cpp
@@ -31,7 +31,7 @@ HashFunction* SHAKE_128::clone() const
std::unique_ptr<HashFunction> SHAKE_128::copy_state() const
{
- return std::unique_ptr<HashFunction>(new SHAKE_128(*this));
+ return std::make_unique<SHAKE_128>(*this);
}
void SHAKE_128::clear()
@@ -72,7 +72,7 @@ HashFunction* SHAKE_256::clone() const
std::unique_ptr<HashFunction> SHAKE_256::copy_state() const
{
- return std::unique_ptr<HashFunction>(new SHAKE_256(*this));
+ return std::make_unique<SHAKE_256>(*this);
}
void SHAKE_256::clear()