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