diff options
author | Jack Lloyd <[email protected]> | 2021-04-04 16:47:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-05 10:08:21 -0400 |
commit | ec8b0aa05cf08aa356ab0631903597bf178480fd (patch) | |
tree | 164e449557b12c45fd7a0007517a505ea4d29bac /src/tests/test_ecdsa.cpp | |
parent | 262681832f7b58287b17a3d33754f5dc4699b660 (diff) |
More raw pointer removal
Diffstat (limited to 'src/tests/test_ecdsa.cpp')
-rw-r--r-- | src/tests/test_ecdsa.cpp | 4 |
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 }; |