summaryrefslogtreecommitdiff
path: root/src/sysdeps/trygetrandom.c
blob: cc2426bb94859fe7635fdc8c12693dcb10bb9e0b (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <sys/random.h>

int main (void)
{
  char buf[4] ;
  if (getrandom(buf, 4, GRND_NONBLOCK) < 0) return 1 ;
  return 0 ;
}