summaryrefslogtreecommitdiff
path: root/src/KM_prng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KM_prng.cpp')
-rwxr-xr-xsrc/KM_prng.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/KM_prng.cpp b/src/KM_prng.cpp
index 031cb35..fb4286c 100755
--- a/src/KM_prng.cpp
+++ b/src/KM_prng.cpp
@@ -163,6 +163,7 @@ Kumu::FortunaRNG::FillRandom(byte_t* buf, ui32_t len)
{
assert(buf);
assert(s_RNG);
+ const byte_t* front_of_buffer = buf;
while ( len )
{
@@ -179,7 +180,7 @@ Kumu::FortunaRNG::FillRandom(byte_t* buf, ui32_t len)
s_RNG->set_key(rng_key);
}
- return buf;
+ return front_of_buffer;
}
//