From 424dc57424ee17de77d689443f95d2e1bed72f4a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 17:38:40 +0200 Subject: Added random number generator --- libc/inc/random.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libc/inc/random.h (limited to 'libc/inc/random.h') diff --git a/libc/inc/random.h b/libc/inc/random.h new file mode 100644 index 0000000..50c849b --- /dev/null +++ b/libc/inc/random.h @@ -0,0 +1,12 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef RANDOM_H +#define RANDOM_H + +#include + +void srand(u32 seed); +u32 rand(); +char *randstr(u32 size); + +#endif -- cgit v1.2.3