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

Commit

Permalink
Merge pull request uuidjs#123 from coolaj86/patch-1
Browse files Browse the repository at this point in the history
fix node.js security vulnerability (test for require directly)
  • Loading branch information
AJ ONeal committed Nov 12, 2015
2 parents 4ff82d5 + 616ad38 commit 8baa708
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 8baa708

Please sign in to comment.