Permalink
Browse files

Fix #30, _rb not defined for lesser node.js versions

  • Loading branch information...
1 parent d008729 commit 8a6c03f969b3332846159312dc583d1746609eea Robert Kieffer committed Jan 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 uuid.js
View
@@ -10,5 +10,5 @@
"dependencies" : [],
"lib" : ".",
"main" : "./uuid.js",
- "version" : "1.3.2"
+ "version" : "1.3.3"
}
View
@@ -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) {}

0 comments on commit 8a6c03f

Please sign in to comment.