summaryrefslogtreecommitdiff
path: root/src/librandom/goodrandom_char.c
blob: 8fbf5e81b3662b7b116f60b0c6c6332c0415f38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

/* MT-unsafe */

#include "random-internal.h"
#include <skalibs/random.h>

unsigned char goodrandom_char (void)
{
  unsigned char x ;
  goodrandom_string((char *)&x, 1) ;
  return x ;
}