summaryrefslogtreecommitdiff
path: root/src/clock
diff options
context:
space:
mode:
Diffstat (limited to 'src/clock')
-rw-r--r--src/clock/s6-taiclock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clock/s6-taiclock.c b/src/clock/s6-taiclock.c
index 99150b5..d8d371f 100644
--- a/src/clock/s6-taiclock.c
+++ b/src/clock/s6-taiclock.c
@@ -34,7 +34,7 @@ int tain_exchange (int s, ip46_t const *ip, uint16 port, tain_t *serversays, tai
int r ;
uint16 dummyport ;
tain_pack(query+4, &STAMP) ;
- if (badrandom_string(query+20, N-20) < N-20) return 0 ; /* cookie */
+ random_string(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) ;
@@ -96,6 +96,7 @@ 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") ;