diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-08-31 23:28:47 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-01 18:06:14 +0200 |
commit | f3baa5d8c915285ea109cf12553e497adb7051ca (patch) | |
tree | f7b674e8bbc49393b2e18c420f9dee40177176c7 /Kernel/Devices | |
parent | 0678ac265cb6d040b703425238488571df849f3e (diff) | |
download | serenity-f3baa5d8c915285ea109cf12553e497adb7051ca.zip |
Kernel: Convert random bytes interface to use AK::Bytes
Diffstat (limited to 'Kernel/Devices')
-rw-r--r-- | Kernel/Devices/RandomDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/RandomDevice.cpp b/Kernel/Devices/RandomDevice.cpp index f0ea6f1281..caf06614b7 100644 --- a/Kernel/Devices/RandomDevice.cpp +++ b/Kernel/Devices/RandomDevice.cpp @@ -32,7 +32,7 @@ bool RandomDevice::can_read(const FileDescription&, size_t) const KResultOr<size_t> RandomDevice::read(FileDescription&, u64, UserOrKernelBuffer& buffer, size_t size) { return buffer.write_buffered<256>(size, [&](u8* data, size_t data_size) { - get_good_random_bytes(data, data_size); + get_good_random_bytes({ data, data_size }); return data_size; }); } |