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