summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-05-29 19:35:43 +0200
committerRoman Reiss <me@silverwind.io>2015-06-11 20:24:44 +0200
commitb5b8ff117c8581945d0c8c3a4b18d53f4b33b86f (patch)
tree9db9a4b3ee06b8210c71c3aef87f9307a5beecd5 /lib/crypto.js
parentff8202c6f475973c8674e61c794b77e1b072144b (diff)
downloadnodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.gz
nodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.bz2
nodejs-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.zip
lib: don't use global Buffer
Port of https://github.com/joyent/node/pull/8603 The race condition present in the original PR didn't occur, so no workaround was needed. PR-URL: https://github.com/nodejs/io.js/pull/1794 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index d0ecef42a..510e8bfbd 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -15,6 +15,7 @@ try {
throw new Error('node.js not compiled with openssl crypto support.');
}
+const Buffer = require('buffer').Buffer;
const constants = require('constants');
const stream = require('stream');
const util = require('util');