summaryrefslogtreecommitdiff
path: root/src/KM_prng.cpp
diff options
context:
space:
mode:
authortmccolm <tmccolm@cinecert.com>2011-06-24 22:12:24 +0000
committertmccolm <>2011-06-24 22:12:24 +0000
commit0a815c035a2cc3742507aebd059d5c042a111527 (patch)
treed25ea9e6217b7146ab79af5be9ce10b44e5a9f4e /src/KM_prng.cpp
parentcec23b082065ae551621a577dcb0ccd1f687ccd0 (diff)
added
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;
}
//