Use the HWRNG for generating DUIDs and IAIDs.

Before these were generated from a freshly seeded PRNG which reduces the
state space of possible DUIDs and skews the distribution of both DUIDs
and IAIDs as a function of the PRNG choice.

None of this really matters much in practice, but do things right.
This commit is contained in:
Nicholas J. Kain
2022-08-28 03:52:44 -04:00
parent d43fc12306
commit 1f0a8f29de
6 changed files with 19 additions and 26 deletions

2
ndhc.c
View File

@@ -567,7 +567,7 @@ int main(int argc, char *argv[])
if (nl_getifdata() < 0)
suicide("failed to get interface MAC or index");
get_clientid(&cs, &client_config);
get_clientid(&client_config);
switch (perform_ifup()) {
case 1: case 0: break;