diff options
Diffstat (limited to 'Kernel/Devices/RandomDevice.cpp')
-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; }); } |