Reseed the PRNG whenever we reset the DHCP state.
This commit is contained in:
parent
1f0a8f29de
commit
c755902fbc
1
state.c
1
state.c
@ -52,6 +52,7 @@ static int delay_timeout(struct client_state_t *cs, size_t numpackets)
|
|||||||
|
|
||||||
static void reinit_shared_deconfig(struct client_state_t *cs)
|
static void reinit_shared_deconfig(struct client_state_t *cs)
|
||||||
{
|
{
|
||||||
|
nk_random_init(&cs->rnd_state);
|
||||||
cs->xid = nk_random_u32(&cs->rnd_state);
|
cs->xid = nk_random_u32(&cs->rnd_state);
|
||||||
cs->clientAddr = 0;
|
cs->clientAddr = 0;
|
||||||
cs->num_dhcp_requests = 0;
|
cs->num_dhcp_requests = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user