http://git.etherboot.org
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d393e61
)
Remove dependency on arptable[] (which is no longer used).
author
Michael Brown
<mcb30@etherboot.org>
Fri, 16 Jun 2006 14:48:31 +0000
(14:48 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Fri, 16 Jun 2006 14:48:31 +0000
(14:48 +0000)
src/core/misc.c
patch
|
blob
|
history
diff --git
a/src/core/misc.c
b/src/core/misc.c
index
8be4ec9
..
d987f85
100644
(file)
--- 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;