Преглед изворни кода

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

tags/v0.9.3
Michael Brown пре 20 година
родитељ
комит
8aeead7c1c
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1
    2
      src/core/misc.c

+ 1
- 2
src/core/misc.c Прегледај датотеку

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…
Откажи
Сачувај