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,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;

Loading…
Cancel
Save