summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:56:48 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:56:48 +0000
commite3f10a8543b88b61cd3b49caf0a7bb3aca8b9172 (patch)
treefef56f87659bb05a4e9f4508401407de03e08492 /src
parent3501ef1df11ec63fb4cddbbd4e756f374dd71ae4 (diff)
downloadskalibs-e3f10a8543b88b61cd3b49caf0a7bb3aca8b9172.tar.xz
More typo fixing
Diffstat (limited to 'src')
-rw-r--r--src/include/skalibs/random.h1
-rw-r--r--src/librandom/random_char.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/include/skalibs/random.h b/src/include/skalibs/random.h
index 2d1bbcf..893b50f 100644
--- a/src/include/skalibs/random.h
+++ b/src/include/skalibs/random.h
@@ -11,6 +11,7 @@ extern void random_makeseed (char *) ; /* fills 160 bytes */
extern int random_init (void) ;
extern void random_finish (void) ;
+extern unsigned char random_char (void) ;
extern void random_string (char *, unsigned int) ;
extern uint32 random_uint32 (uint32) ;
extern void random_name (char *, unsigned int) ;
diff --git a/src/librandom/random_char.c b/src/librandom/random_char.c
index 2c5a7da..f55443e 100644
--- a/src/librandom/random_char.c
+++ b/src/librandom/random_char.c
@@ -2,7 +2,7 @@
#include <skalibs/random.h>
-unsigned char badrandom_char (void)
+unsigned char random_char (void)
{
unsigned char c ;
random_string((char *)&c, 1) ;