Skip to content
Browse files

use Math.random() instead of identifier

  • Loading branch information...
1 parent 243305a commit 7d83c1c59bc0338caa5c0d8225932923d40c89ee @substack committed Jul 19, 2012
Showing with 3 additions and 5 deletions.
  1. +2 −3 index.js
  2. +1 −2 package.json
View
5 index.js
@@ -1,6 +1,5 @@
var upnode = require('upnode');
var semver = require('semver');
-var identifier = require('identifier');
var EventEmitter = require('events').EventEmitter;
exports.connect = function () {
@@ -225,7 +224,7 @@ exports.createServer = function (opts) {
params.port = port;
params.version = version;
params.role = role;
- params._id = identifier(16);
+ params._id = Math.random().toString(16).slice(2);
roles[role].push(params);
allocated.push(params);
@@ -269,7 +268,7 @@ exports.createServer = function (opts) {
params.port = port;
params.role = role;
params.version = version;
- params._id = identifier(16);
+ params._id = Math.random().toString(16).slice(2);
roles[role].push(params);
allocated.push(params);
View
3 package.json
@@ -29,8 +29,7 @@
"dependencies" : {
"upnode" : "~0.2.2",
"optimist" : "0.3.x",
- "semver" : "1.0.x",
- "identifier" : "0.0.x"
+ "semver" : "1.0.x"
},
"devDependencies" : {
"tap" : "~0.2.3",

0 comments on commit 7d83c1c

Please sign in to comment.
Something went wrong with that request. Please try again.