diff options
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index f3a7b827c..07a8b11c1 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1093,6 +1093,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1093 | int retval; | 1093 | int retval; |
1094 | 1094 | ||
1095 | setup_common_bufsiz(); | 1095 | setup_common_bufsiz(); |
1096 | /* We want random_xid to be random */ | ||
1097 | srand(monotonic_us()); | ||
1096 | 1098 | ||
1097 | /* Default options */ | 1099 | /* Default options */ |
1098 | IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;) | 1100 | IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;) |
@@ -1207,8 +1209,6 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1207 | bb_error_msg("started, v"BB_VER); | 1209 | bb_error_msg("started, v"BB_VER); |
1208 | /* Set up the signal pipe */ | 1210 | /* Set up the signal pipe */ |
1209 | udhcp_sp_setup(); | 1211 | udhcp_sp_setup(); |
1210 | /* We want random_xid to be random... */ | ||
1211 | srand(monotonic_us()); | ||
1212 | 1212 | ||
1213 | state = INIT_SELECTING; | 1213 | state = INIT_SELECTING; |
1214 | d6_run_script(NULL, "deconfig"); | 1214 | d6_run_script(NULL, "deconfig"); |