david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Remove dependency on arptable[] (which is no longer used).

This commit is contained in:
Michael Brown 2006-06-16 14:48:31 +00:00
parent d393e61d8a
commit 8aeead7c1c
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ int32_t random(void)
static int32_t seed = 0; static int32_t seed = 0;
int32_t q; int32_t q;
if (!seed) /* Initialize linear congruential generator */ if (!seed) /* Initialize linear congruential generator */
seed = currticks() + *(int32_t *)&arptable[ARP_CLIENT].node seed = currticks();
+ ((int16_t *)arptable[ARP_CLIENT].node)[2];
/* simplified version of the LCG given in Bruce Schneier's /* simplified version of the LCG given in Bruce Schneier's
"Applied Cryptography" */ "Applied Cryptography" */
q = seed/53668; q = seed/53668;