summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/zcip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/zcip.c b/networking/zcip.c
index 281f551d7..0b5bebec4 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -198,8 +198,6 @@ int zcip_main(int argc, char **argv)
198 198
199 memset(&L, 0, sizeof(L)); 199 memset(&L, 0, sizeof(L));
200 200
201 srand(MONOTONIC_US());
202
203#define FOREGROUND (opts & 1) 201#define FOREGROUND (opts & 1)
204#define QUIT (opts & 2) 202#define QUIT (opts & 2)
205 // parse commandline: prog [options] ifname script 203 // parse commandline: prog [options] ifname script
@@ -254,8 +252,7 @@ int zcip_main(int argc, char **argv)
254 // the hardware address or else the last address we used. 252 // the hardware address or else the last address we used.
255 // NOTE: the sequence of addresses we try changes only 253 // NOTE: the sequence of addresses we try changes only
256 // depending on when we detect conflicts. 254 // depending on when we detect conflicts.
257 // (SVID 3 bogon: who says that "short" is always 16 bits?) 255 srand(*(unsigned*)&ifr.ifr_hwaddr.sa_data);
258 seed48( (unsigned short*)&ifr.ifr_hwaddr.sa_data );
259 if (ip.s_addr == 0) 256 if (ip.s_addr == 0)
260 pick(&ip); 257 pick(&ip);
261 258