summaryrefslogtreecommitdiff
path: root/src/librandom/rrandom_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librandom/rrandom_name.c')
-rw-r--r--src/librandom/rrandom_name.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/librandom/rrandom_name.c b/src/librandom/rrandom_name.c
deleted file mode 100644
index 2085d17..0000000
--- a/src/librandom/rrandom_name.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ISC license. */
-
-#include <skalibs/unirandom.h>
-#include <skalibs/rrandom.h>
-
-unsigned int rrandom_name (rrandom *z, char *s, unsigned int n, int nb)
-{
- static char const *oklist = "ABCDEFGHIJKLMNOPQRSTUVWXYZghijklmnopqrstuvwxyz-_0123456789abcdef" ;
- register unsigned int r = rrandom_read(z, s, n, nb ? &unirandom_readnb : &unirandom_readb) ;
- register unsigned int i = 0 ;
- for (; i < r ; i++) s[i] = oklist[s[i] & 63] ;
- return r ;
-}