Use the ncmlib combined Tausworthe PRNG.
This commit is contained in:
parent
c0fc3ed430
commit
be456ddeee
@ -636,7 +636,7 @@ int send_decline(struct client_state_t *cs, uint32_t server)
|
|||||||
|
|
||||||
int send_release(struct client_state_t *cs)
|
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;
|
packet.ciaddr = cs->clientAddr;
|
||||||
add_option_reqip(&packet, cs->clientAddr);
|
add_option_reqip(&packet, cs->clientAddr);
|
||||||
add_option_serverid(&packet, cs->serverAddr);
|
add_option_serverid(&packet, cs->serverAddr);
|
||||||
|
@ -306,7 +306,7 @@ static void selecting_timeout(struct client_state_t *cs, long long nowts)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (num_dhcp_requests == 0)
|
if (num_dhcp_requests == 0)
|
||||||
cs->xid = libc_random_u32();
|
cs->xid = nk_random_u32();
|
||||||
send_discover(cs);
|
send_discover(cs);
|
||||||
dhcp_wake_ts = nowts + delay_timeout(num_dhcp_requests);
|
dhcp_wake_ts = nowts + delay_timeout(num_dhcp_requests);
|
||||||
num_dhcp_requests++;
|
num_dhcp_requests++;
|
||||||
|
Loading…
Reference in New Issue
Block a user