summaryrefslogtreecommitdiff
path: root/src/librandom/autosurf_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librandom/autosurf_name.c')
-rw-r--r--src/librandom/autosurf_name.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librandom/autosurf_name.c b/src/librandom/autosurf_name.c
new file mode 100644
index 0000000..d80e1f8
--- /dev/null
+++ b/src/librandom/autosurf_name.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/surf.h>
+#include "random-internal.h"
+
+void autosurf_name (char *s, size_t n)
+{
+ autosurf(s, n) ;
+ while (n--) s[n] = random_oklist[s[n] & 63] ;
+}