Skip to content

Commit

Permalink
random -> urandom and some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed May 4, 2018
1 parent 52106b0 commit d457b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"dependencies": {
"once": "^1.4.0"
},
"devDependencies": {
"pumpify": "^1.4.0",
"through2": "^2.0.3"
},
"scripts": {
"test": "node test.js"
},
Expand All @@ -30,9 +34,5 @@
"homepage": "https://github.com/mafintosh/end-of-stream",
"main": "index.js",
"author": "Mathias Buus <mathiasbuus@gmail.com>",
"license": "MIT",
"devDependencies": {
"pumpify": "^1.3.6",
"through2": "^2.0.3"
}
"license": "MIT"
}
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ eos(ws, function(err) {
});
ws.destroy();

var rs1 = fs.createReadStream('/dev/random');
var rs1 = fs.createReadStream('/dev/urandom');
eos(rs1, function(err) {
expected--;
assert(!!err);
Expand Down Expand Up @@ -84,7 +84,7 @@ var server = net.createServer(function(socket) {
});

// Succeeds
var rs4 = fs.createReadStream('/dev/random');
var rs4 = fs.createReadStream('/dev/urandom');
var p1 = pumpify(
through(),
through(function(chunk, _, cb) {
Expand All @@ -99,7 +99,7 @@ eos(rs4.pipe(p1), function(err) {
});

// Fails
var rs5 = fs.createReadStream('/dev/random');
var rs5 = fs.createReadStream('/dev/urandom');
var pumpifyErr = pumpify(
through(),
through(function(chunk, _, cb) {
Expand Down

0 comments on commit d457b83

Please sign in to comment.