diff options
Diffstat (limited to 'src/KM_prng.cpp')
| -rwxr-xr-x | src/KM_prng.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/KM_prng.cpp b/src/KM_prng.cpp index 094ee1b..e710d9a 100755 --- a/src/KM_prng.cpp +++ b/src/KM_prng.cpp @@ -135,8 +135,7 @@ public: { byte_t tmp[RNG_BLOCK_SIZE]; AES_encrypt(m_ctr_buf, tmp, &m_Context); - *(ui32_t*)(m_ctr_buf + 12) += 1; - memcpy(buf, tmp, len - gen_count); + memcpy(buf + gen_count, tmp, len - gen_count); } } }; |
