summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/RandomDevice.h
blob: 4d7436dacb64cfed0a46806a25ee09aa57c8d516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "CharacterDevice.h"

class RandomDevice final : public CharacterDevice {
    AK_MAKE_ETERNAL
public:
    RandomDevice();
    virtual ~RandomDevice() override;

    virtual ssize_t read(byte* buffer, size_t bufferSize) override;
    virtual ssize_t write(const byte* buffer, size_t bufferSize) override;
    virtual bool has_data_available_for_reading(Process&) const override;
};