MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Write

Method Write

Kernel/src/device.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36ssize_t Null::Write(size_t offset, size_t size, uint8_t *buffer){
37 return size;
38}
39
40ssize_t URandom::Read(size_t offset, size_t size, uint8_t *buffer){
41 unsigned int num = (rand() ^ ((Timer::GetSystemUptime() / 2) * Timer::GetFrequency())) + rand();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected