mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
Remove dependency on arptable[] (which is no longer used).
This commit is contained in:
parent
d393e61d8a
commit
8aeead7c1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user