Skip to content

Commit

Permalink
Fix #30, _rb not defined for lesser node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Kieffer committed Jan 2, 2012
1 parent d008729 commit 8a6c03f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"dependencies" : [],
"lib" : ".",
"main" : "./uuid.js",
"version" : "1.3.2"
"version" : "1.3.3"
}
2 changes: 1 addition & 1 deletion uuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
// Node.js only, moderately fast, high quality
try {
var _rb = require('crypto').randomBytes;
nodeRNG = function() {
nodeRNG = _rb && function() {
return _rb(16);
};
} catch (e) {}
Expand Down

0 comments on commit 8a6c03f

Please sign in to comment.