summaryrefslogtreecommitdiff
path: root/src/librandom/badrandom_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librandom/badrandom_string.c')
-rw-r--r--src/librandom/badrandom_string.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/librandom/badrandom_string.c b/src/librandom/badrandom_string.c
new file mode 100644
index 0000000..ec20f5b
--- /dev/null
+++ b/src/librandom/badrandom_string.c
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/rrandom.h>
+#include "random-internal.h"
+#include <skalibs/random.h>
+
+unsigned int badrandom_string (char *s, unsigned int n)
+{
+ return rrandom_readnb(&badrandom_here, s, n) ;
+}