Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
066dc1453a
  1. 2
      basilisk/basilisk_ping.c

2
basilisk/basilisk_ping.c

@ -276,7 +276,7 @@ void basilisk_ping_send(struct supernet_info *myinfo,struct iguana_info *btcd)
myinfo->pingbuf = malloc(IGUANA_MAXPACKETSIZE);
datalen = basilisk_ping_gen(myinfo,&myinfo->pingbuf[sizeof(struct iguana_msghdr)],IGUANA_MAXPACKETSIZE-sizeof(struct iguana_msghdr));
incr = sqrt(myinfo->numrelays) + 1;
for (j=0; j<incr; j++)
for (j=0; j<=incr; j++)
{
OS_randombytes((void *)&r,sizeof(r));
i = (j == 0) ? myinfo->RELAYID : (r % myinfo->numrelays);

Loading…
Cancel
Save