Skip to content

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
williamkapke committed Nov 21, 2014
1 parent cae13b4 commit 1ef60d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion objectid.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

var MACHINE_ID = parseInt(Math.random() * 0xFFFFFF, 10);
var index = ObjectID.index = parseInt(Math.random() * 0xFFFFFF, 10);
var pid = typeof process === 'undefined' ? Math.floor(Math.random() * 100000) : process.pid;
var pid = typeof process === 'undefined' ? Math.floor(Math.random() * 100000) : process.pid % 0xFFFF;
var isBuffer = typeof Buffer !== "undefined"? Buffer.isBuffer : function(){};

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bson-objectid",
"version": "1.0.0",
"version": "1.0.1",
"description": "Construct ObjectIDs without the mongodb driver or bson module",
"main": "objectid.js",
"directories": {
Expand Down

0 comments on commit 1ef60d8

Please sign in to comment.