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

Commit

Permalink
fix node.js security vulnerability
Browse files Browse the repository at this point in the history
I would think this needs a test as well
  • Loading branch information
AJ ONeal committed Nov 7, 2015
1 parent 4ff82d5 commit 616ad38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuid.js
Expand Up @@ -17,7 +17,7 @@
// Node.js crypto-based RNG - http://nodejs.org/docs/v0.6.2/api/crypto.html
//
// Moderately fast, high quality
if (typeof(_global.require) == 'function') {
if ('function' === typeof require) {
try {
var _rb = _global.require('crypto').randomBytes;
_rng = _rb && function() {return _rb(16);};
Expand Down

0 comments on commit 616ad38

Please sign in to comment.