Skip to content

Instantly share code, notes, and snippets.

@nulltask nulltask/urandom.js
Created Jun 13, 2012

Embed
What would you like to do?
var urandom = require('fs').createReadStream('/dev/urandom');
process.on('uncaughtException', function(e) {
console.log(e);
});
require('net').createServer(function(socket) {
urandom.pipe(socket);
}).listen(10101);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.