Browse Source

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

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
8aeead7c1c
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/core/misc.c

+ 1
- 2
src/core/misc.c View File

64
 	static int32_t seed = 0;
64
 	static int32_t seed = 0;
65
 	int32_t q;
65
 	int32_t q;
66
 	if (!seed) /* Initialize linear congruential generator */
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
 	/* simplified version of the LCG given in Bruce Schneier's
68
 	/* simplified version of the LCG given in Bruce Schneier's
70
 	   "Applied Cryptography" */
69
 	   "Applied Cryptography" */
71
 	q = seed/53668;
70
 	q = seed/53668;

Loading…
Cancel
Save