* i2psnark:

- Choke slower when at bandwidth limit
      - Fix completion % for small files
      - Use Random from context
This commit is contained in:
zzz
2010-05-23 16:18:10 +00:00
parent 48da98d0e4
commit 5d7c9ebf82
5 changed files with 9 additions and 7 deletions

View File

@ -321,7 +321,7 @@ public class Snark
// sixteen random bytes.
byte snark = (((3 + 7 + 10) * (1000 - 8)) / 992) - 17;
id = new byte[20];
Random random = new Random();
Random random = I2PAppContext.getGlobalContext().random();
int i;
for (i = 0; i < 9; i++)
id[i] = 0;