summaryrefslogtreecommitdiffstats
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorMichael Brown2006-06-16 16:48:31 +0200
committerMichael Brown2006-06-16 16:48:31 +0200
commit8aeead7c1cd6f0166bb3f0ac9abaf8e490e33923 (patch)
tree73ba694f80f00290f9e102e730b8c3b65d550724 /src/core/misc.c
parentTemporary hack to work around the "TX overflow" problem in the interim (diff)
downloadipxe-8aeead7c1cd6f0166bb3f0ac9abaf8e490e33923.tar.gz
ipxe-8aeead7c1cd6f0166bb3f0ac9abaf8e490e33923.tar.xz
ipxe-8aeead7c1cd6f0166bb3f0ac9abaf8e490e33923.zip
Remove dependency on arptable[] (which is no longer used).
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 8be4ec97..d987f856 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -64,8 +64,7 @@ int32_t random(void)
static int32_t seed = 0;
int32_t q;
if (!seed) /* Initialize linear congruential generator */
- seed = currticks() + *(int32_t *)&arptable[ARP_CLIENT].node
- + ((int16_t *)arptable[ARP_CLIENT].node)[2];
+ seed = currticks();
/* simplified version of the LCG given in Bruce Schneier's
"Applied Cryptography" */
q = seed/53668;