Files
KaOs d270131062 RevE-light development version
WARNING: The files in this commit are our current development version. The hardware and software is not functional yet - so do not use it. We will not answer any support inquiry regarding this version at the moment.
2017-11-23 14:40:40 +00:00

31 lines
378 B
C

#include "Random.h"
#include <stdlib.h>
void RandomInit(void)
{
}
uint8_t RandomGetByte(void)
{
return rand() & 0xFF;
}
void RandomGetBuffer(void* Buffer, uint8_t ByteCount)
{
uint8_t* BufferPtr = (uint8_t*) Buffer;
while(ByteCount--) {
*BufferPtr++ = RandomGetByte();
}
}
void RandomTick(void)
{
rand();
rand();
rand();
rand();
}