From f40fd46d173b45dbc905d79b6b42dd1007f9c566 Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Fri, 25 Nov 2016 14:45:07 -0800 Subject: [PATCH] Updates per @defunctzombie's comments on #159 --- lib/rng-browser.js | 4 ---- lib/rng.js | 6 ++++-- package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/rng-browser.js b/lib/rng-browser.js index c84f3109..88b7dfb6 100644 --- a/lib/rng-browser.js +++ b/lib/rng-browser.js @@ -12,8 +12,6 @@ if (crypto && crypto.getRandomValues) { crypto.getRandomValues(rnds8); return rnds8; }; - - rng.isCrypto = true; } if (!rng) { @@ -30,8 +28,6 @@ if (!rng) { return rnds; }; - - rng.isCrypto = false; } module.exports = rng; diff --git a/lib/rng.js b/lib/rng.js index d82c9268..5624d912 100644 --- a/lib/rng.js +++ b/lib/rng.js @@ -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; diff --git a/package.json b/package.json index ab0466d7..dee68a54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uuid", - "version": "3.1.0", + "version": "3.0.0", "description": "RFC4122 (v1 and v4) generator", "keywords": [ "uuid",