mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Add the basic character devices to kernel.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user