From 0a815c035a2cc3742507aebd059d5c042a111527 Mon Sep 17 00:00:00 2001 From: tmccolm Date: Fri, 24 Jun 2011 22:12:24 +0000 Subject: added --- src/KM_prng.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/KM_prng.cpp') 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; } // -- cgit v1.2.3