From 3534b428629be185e096be99e3bd5fdfe32d5544 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Sep 2014 18:55:44 +0000 Subject: initial commit with rc for skalibs-2.0.0.0 --- src/librandom/goodrandom_char.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/librandom/goodrandom_char.c (limited to 'src/librandom/goodrandom_char.c') diff --git a/src/librandom/goodrandom_char.c b/src/librandom/goodrandom_char.c new file mode 100644 index 0000000..8fbf5e8 --- /dev/null +++ b/src/librandom/goodrandom_char.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#include "random-internal.h" +#include + +unsigned char goodrandom_char (void) +{ + unsigned char x ; + goodrandom_string((char *)&x, 1) ; + return x ; +} -- cgit v1.3.1