From be456ddeeebd5d266955ca06e4dbe2104b9599dd Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Wed, 12 Mar 2014 12:47:04 -0400 Subject: [PATCH] Use the ncmlib combined Tausworthe PRNG. --- ndhc/dhcp.c | 2 +- ndhc/state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ndhc/dhcp.c b/ndhc/dhcp.c index 096537d..9b337fe 100644 --- a/ndhc/dhcp.c +++ b/ndhc/dhcp.c @@ -636,7 +636,7 @@ int send_decline(struct client_state_t *cs, uint32_t server) int send_release(struct client_state_t *cs) { - struct dhcpmsg packet = init_packet(DHCPRELEASE, libc_random_u32()); + struct dhcpmsg packet = init_packet(DHCPRELEASE, nk_random_u32()); packet.ciaddr = cs->clientAddr; add_option_reqip(&packet, cs->clientAddr); add_option_serverid(&packet, cs->serverAddr); diff --git a/ndhc/state.c b/ndhc/state.c index 679fb65..20a89b0 100644 --- a/ndhc/state.c +++ b/ndhc/state.c @@ -306,7 +306,7 @@ static void selecting_timeout(struct client_state_t *cs, long long nowts) } } if (num_dhcp_requests == 0) - cs->xid = libc_random_u32(); + cs->xid = nk_random_u32(); send_discover(cs); dhcp_wake_ts = nowts + delay_timeout(num_dhcp_requests); num_dhcp_requests++;