diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 22:44:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 22:44:15 +0000 |
commit | 3e64e98570b2748973a66876a8b010c5d63e23be (patch) | |
tree | e3654a08118fc0e1a53d3663e70e8865d0a4894d /networking/zcip.c | |
parent | 65b8cfb2a0b6854271dbd8baf5203896223cd4ce (diff) | |
download | busybox-w32-3e64e98570b2748973a66876a8b010c5d63e23be.tar.gz busybox-w32-3e64e98570b2748973a66876a8b010c5d63e23be.tar.bz2 busybox-w32-3e64e98570b2748973a66876a8b010c5d63e23be.zip |
zcip: remove stray seed48. It's the only thing which was pulling in
rand48 machinery:
zcip_main 1552 1537 -15
seed48 22 - -22
__libc_drand48_data 24 - -24
seed48_r 78 - -78
__GI_seed48_r 78 - -78
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/1 up/down: 0/-217) Total: -217 bytes
Diffstat (limited to 'networking/zcip.c')
-rw-r--r-- | networking/zcip.c | 5 |
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 | ||