1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:08:11 +00:00

Add the basic character devices to kernel.

This commit is contained in:
Andreas Kling 2018-10-16 14:33:16 +02:00
parent 12e515735b
commit aec8ab0a60
13 changed files with 52 additions and 58 deletions

View file

@ -1,8 +1,6 @@
#include "RandomDevice.h"
#include "Limits.h"
#include <AK/StdLib.h>
#include <cstring>
#include <cstdio>
RandomDevice::RandomDevice()
{
@ -23,10 +21,12 @@ static int myrand()
return((unsigned)(next/((MY_RAND_MAX + 1) * 2)) % (MY_RAND_MAX + 1));
}
#if 0
static void mysrand(unsigned seed)
{
next = seed;
}
#endif
Unix::ssize_t RandomDevice::read(byte* buffer, Unix::size_t bufferSize)
{