aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_package_transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_package_transform.cpp')
-rw-r--r--src/tests/test_package_transform.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test_package_transform.cpp b/src/tests/test_package_transform.cpp
index f09251e1d..d72c3bbcb 100644
--- a/src/tests/test_package_transform.cpp
+++ b/src/tests/test_package_transform.cpp
@@ -30,7 +30,8 @@ class Package_Transform_Tests final : public Test
for(size_t input_len = 2; input_len != 256; ++input_len)
{
- std::vector<uint8_t> input = unlock(Test::rng().random_vec(input_len));
+ std::vector<uint8_t> input;
+ Test::rng().random_vec(input, input_len);
std::vector<uint8_t> output(input.size() + cipher->block_size());
// aont_package owns/deletes the passed cipher object, kind of a bogus API