summaryrefslogtreecommitdiff
path: root/src/KM_prng.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-29 01:50:18 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-29 01:50:18 +0200
commit8f23c6c904d17e468bf94397fee28e1242cb1651 (patch)
tree94d535701265a857aba61f943f357a6c2516ddf6 /src/KM_prng.cpp
parentbb09615b20d477b0c0663901a2344b5a53846aeb (diff)
Add another VALGRIND_MAKE_MEM_DEFINED.
Diffstat (limited to 'src/KM_prng.cpp')
-rwxr-xr-xsrc/KM_prng.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/KM_prng.cpp b/src/KM_prng.cpp
index a650eb8..94de208 100755
--- a/src/KM_prng.cpp
+++ b/src/KM_prng.cpp
@@ -214,6 +214,10 @@ Kumu::FortunaRNG::FillRandom(byte_t* buf, ui32_t len)
s_RNG->set_key(rng_key);
}
+#if HAVE_VALGRIND_MEMCHECK_H
+ VALGRIND_MAKE_MEM_DEFINED(buf, len);
+#endif
+
return front_of_buffer;
}