diff options
Diffstat (limited to 'src/librandom/random_char.c')
-rw-r--r-- | src/librandom/random_char.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librandom/random_char.c b/src/librandom/random_char.c new file mode 100644 index 0000000..2c5a7da --- /dev/null +++ b/src/librandom/random_char.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <skalibs/random.h> + +unsigned char badrandom_char (void) +{ + unsigned char c ; + random_string((char *)&c, 1) ; + return c ; +} |