Reseed the PRNG whenever we reset the DHCP state.

This commit is contained in:
Nicholas J. Kain 2022-08-28 03:54:57 -04:00
parent 1f0a8f29de
commit c755902fbc
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{
nk_random_init(&cs->rnd_state);
cs->xid = nk_random_u32(&cs->rnd_state);
cs->clientAddr = 0;
cs->num_dhcp_requests = 0;