diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-13 12:53:26 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-13 19:28:15 +0200 |
commit | db6a4f295410f49f7290d70f8a019633895e8b7a (patch) | |
tree | a0b2def7d7db7de76cdc5dd0f7285fe7b69ffb61 /Kernel/Random.h | |
parent | 11b9e8b36686a2862cc4db9a8c050b073ceb981e (diff) | |
download | serenity-db6a4f295410f49f7290d70f8a019633895e8b7a.zip |
Kernel: Fix rng regression from bc7a149039
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> |