projects
/
asdcplib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added
[asdcplib.git]
/
src
/
KM_prng.cpp
diff --git
a/src/KM_prng.cpp
b/src/KM_prng.cpp
index 031cb3546eb099a604edc2ad98c3460c354c4964..fb4286ce386051c845353a06dd50ebdadf75de05 100755
(executable)
--- 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
;
}
//