diff options
Diffstat (limited to 'Kernel/Random.h')
-rw-r--r-- | Kernel/Random.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Random.h b/Kernel/Random.h index 318d21a997..40acfd1eb4 100644 --- a/Kernel/Random.h +++ b/Kernel/Random.h @@ -73,8 +73,8 @@ public: cipher.key_stream(buffer_span, counter_span, &counter_span); // Extract a new key from the prng stream. - - cipher.key_stream(buffer_span, counter_span, &counter_span); + Bytes key_span = m_key.span(); + cipher.key_stream(key_span, counter_span, &counter_span); } template<typename T> |