From c45631e0d8d2de6f44c618408a187645fe48e16e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 Apr 2022 19:01:52 +0000 Subject: Prepare for 2.5.1.1; adapt to skalibs-2.12.0.0 Signed-off-by: Laurent Bercot --- src/clock/s6-taiclock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/clock/s6-taiclock.c') diff --git a/src/clock/s6-taiclock.c b/src/clock/s6-taiclock.c index 2bc0470..6701f9e 100644 --- a/src/clock/s6-taiclock.c +++ b/src/clock/s6-taiclock.c @@ -33,7 +33,7 @@ int tain_exchange (int s, ip46 const *ip, uint16_t port, tain *serversays, tain ssize_t r ; uint16_t dummyport ; tain_pack(query+4, &STAMP) ; - random_string(query+20, N-20) ; /* cookie */ + random_buf(query+20, N-20) ; /* cookie */ r = socket_sendnb46_g(s, query, N, ip, port, deadline) ; if (r < 0) return 0 ; if (r < N) return (errno = EPIPE, 0) ; @@ -95,7 +95,6 @@ int main (int argc, char const *const *argv) } if (!argc) dieusage() ; if (!ip46_scan(argv[0], &ipremote)) dieusage() ; - if (!random_init()) strerr_diefu1sys(111, "init random generator") ; sock = socket_udp46(ip46_is6(&ipremote)) ; if (sock < 0) strerr_diefu1sys(111, "socket_udp") ; -- cgit v1.2.3