summaryrefslogtreecommitdiff
path: root/src/librandom/goodrandom_int.c
blob: 11ef2e19b7bf3ba2b2826acc0af0dbc506b8c4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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) ;
}