aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ecdsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-04-04 16:47:11 -0400
committerJack Lloyd <[email protected]>2021-04-05 10:08:21 -0400
commitec8b0aa05cf08aa356ab0631903597bf178480fd (patch)
tree164e449557b12c45fd7a0007517a505ea4d29bac /src/tests/test_ecdsa.cpp
parent262681832f7b58287b17a3d33754f5dc4699b660 (diff)
More raw pointer removal
Diffstat (limited to 'src/tests/test_ecdsa.cpp')
-rw-r--r--src/tests/test_ecdsa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_ecdsa.cpp b/src/tests/test_ecdsa.cpp
index 7dcfb26af..ca05dc83a 100644
--- a/src/tests/test_ecdsa.cpp
+++ b/src/tests/test_ecdsa.cpp
@@ -128,11 +128,11 @@ class ECDSA_Signature_KAT_Tests final : public PK_Signature_Generation_Test
}
#if !defined(BOTAN_HAS_RFC6979_GENERATOR)
- Botan::RandomNumberGenerator* test_rng(const std::vector<uint8_t>& nonce) const override
+ std::unique_ptr<Botan::RandomNumberGenerator> test_rng(const std::vector<uint8_t>& nonce) const override
{
// probabilistic ecdsa signature generation extracts more random than just the nonce,
// but the nonce is extracted first
- return new Fixed_Output_Position_RNG(nonce, 1);
+ return std::make_unique<Fixed_Output_Position_RNG>(nonce, 1);
}
#endif
};