summaryrefslogtreecommitdiff
path: root/src/librandom/badrandom_char.c
blob: c0ca1de53b0e3cb901d53cd48c053e6b27ed1ffe (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 badrandom_char (void)
{
  unsigned char x ;
  badrandom_string((char *)&x, 1) ;
  return x ;
}