Verified Commit 420287e2 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

random: initial work at a new module

This is a _dangerously_ naive implementation.  Do not ship.
parent db5dae20
......@@ -17,6 +17,7 @@ LIBGCOMPAT_SRC = \
libgcompat/netdb.c \
libgcompat/pthread.c \
libgcompat/pwd.c \
libgcompat/random.c \
libgcompat/readlink.c \
libgcompat/realpath.c \
libgcompat/resolv.c \
......
#include <inttypes.h>
#include <stdlib.h>
int initstate_r(unsigned int seed, char *statebuf, size_t statelen, void *buf) {
return 0;
}
int random_r(struct random_data *buf, int32_t *result) {
*result = random();
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment