summaryrefslogtreecommitdiff
path: root/src/minutils/s6-fillurandompool.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-04-09 15:19:23 +0000
committerLaurent Bercot <ska@appnovation.com>2022-04-09 15:19:23 +0000
commit8add2dbec0842d5b051b4dba5536fba9d82ce6bc (patch)
treef8478d1d6b62b23793e467bf26132fefd147b86e /src/minutils/s6-fillurandompool.c
parentaca7260544890140f78c84276120fc4f217d3896 (diff)
downloads6-linux-utils-8add2dbec0842d5b051b4dba5536fba9d82ce6bc.tar.xz
Prepare for 2.5.1.8; adapt to skalibs-2.12.0.0
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/minutils/s6-fillurandompool.c')
-rw-r--r--src/minutils/s6-fillurandompool.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/minutils/s6-fillurandompool.c b/src/minutils/s6-fillurandompool.c
index 6421659..c96437c 100644
--- a/src/minutils/s6-fillurandompool.c
+++ b/src/minutils/s6-fillurandompool.c
@@ -1,14 +1,10 @@
/* ISC license. */
-#include <skalibs/strerr2.h>
#include <skalibs/random.h>
int main (void)
{
char c ;
- PROG = "s6-fillurandompool" ;
- if (!random_init())
- strerr_diefu1sys(111, "initialize random generator") ;
- random_string(&c, 1) ;
+ random_buf(&c, 1) ;
return 0 ;
}