aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_hilbert.cpp2
-rw-r--r--test/test_utils.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp
index ac4bba1..a0a64c0 100644
--- a/test/test_hilbert.cpp
+++ b/test/test_hilbert.cpp
@@ -39,7 +39,7 @@ template <size_t D>
std::array<uint64_t, D>
make_random_point(Context& ctx, const std::array<size_t, D>& ms)
{
- std::array<uint64_t, D> p;
+ std::array<uint64_t, D> p{};
for (size_t i = 0; i < D; ++i) {
p[i] = rand_between(ctx, 0, (1UL << ms[i]) - 1);
}
diff --git a/test/test_utils.hpp b/test/test_utils.hpp
index 3388552..65bd1b1 100644
--- a/test/test_utils.hpp
+++ b/test/test_utils.hpp
@@ -69,7 +69,7 @@ template <size_t N, size_t D, size_t Max = 64>
std::array<size_t, D>
make_random_precisions(Context& ctx)
{
- std::array<size_t, D> ms;
+ std::array<size_t, D> ms{};
size_t bits_left = N;
for (size_t i = 0; i < D; ++i) {
@@ -85,7 +85,7 @@ template <size_t M, size_t D>
std::array<uint64_t, D>
make_random_point(Context& ctx)
{
- std::array<uint64_t, D> p;
+ std::array<uint64_t, D> p{};
for (size_t i = 0; i < D; ++i) {
p[i] = rand_between(ctx, 0, (1UL << M) - 1);
}