1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* ISC license. */ #include <skalibs/strerr2.h> #include <skalibs/random.h> int main (void) { unsigned char c ; PROG = "s6-fillurandompool" ; if (!random_init()) strerr_diefu1sys(111, "initialize random generator") ; random_string(&c, 1) ; return 0 ; }