Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/rarity-map.js')
-rw-r--r--test/rarity-map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rarity-map.js b/test/rarity-map.js
index f7da99b..1fb947d 100644
--- a/test/rarity-map.js
+++ b/test/rarity-map.js
@@ -1,6 +1,6 @@
var extend = require('xtend')
var fixtures = require('webtorrent-fixtures')
-var hat = require('hat')
+var randombytes = require('randombytes')
var test = require('tape')
var Torrent = require('../lib/torrent')
var Wire = require('bittorrent-protocol')
@@ -14,7 +14,7 @@ test('Rarity map usage', function (t) {
})
var client = {
listening: true,
- peerId: hat(160),
+ peerId: randombytes(20).toString('hex'),
torrentPort: 6889,
dht: false,
tracker: false,