KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fs_random.h File Reference

Driver for /dev/random and /dev/urandom. More...

#include <sys/cdefs.h>
#include <kos/fs.h>

Go to the source code of this file.

Detailed Description

Driver for /dev/random and /dev/urandom.

This filesystem driver provides implementations of /dev/random and /dev/urandom for portability. It seeds randomness from uninitialized memory, and the clock. Obviously we are limited in how we can provide sufficient entropy on an embedded platform like the Dreamcast so the randomness from this driver will not win any awards but it should be sufficiently good for most purposes.

/dev/random is an alias to /dev/urandom for now.

Author
Luke Benstead