Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Updates per @defunctzombie's comments on uuidjs#159
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Nov 26, 2016
1 parent 7bfe355 commit f40fd46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/rng-browser.js
Expand Up @@ -12,8 +12,6 @@ if (crypto && crypto.getRandomValues) {
crypto.getRandomValues(rnds8);
return rnds8;
};

rng.isCrypto = true;
}

if (!rng) {
Expand All @@ -30,8 +28,6 @@ if (!rng) {

return rnds;
};

rng.isCrypto = false;
}

module.exports = rng;
6 changes: 4 additions & 2 deletions lib/rng.js
Expand Up @@ -2,7 +2,9 @@
// this is prett straight-forward - we use the crypto API.

var rb = require('crypto').randomBytes;
function rng() {return rb(16);};
rng.isCrypto = true;

function rng() {
return rb(16);
};

module.exports = rng;
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "uuid",
"version": "3.1.0",
"version": "3.0.0",
"description": "RFC4122 (v1 and v4) generator",
"keywords": [
"uuid",
Expand Down

0 comments on commit f40fd46

Please sign in to comment.