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#127 from mauricedb/Fix-crypto-browserify
Browse files Browse the repository at this point in the history
Don't try to load the node package in a browser
  • Loading branch information
AJ ONeal committed Nov 13, 2015
2 parents 0b1eeda + e3cc114 commit f10e13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// Node.js crypto-based RNG - http://nodejs.org/docs/v0.6.2/api/crypto.html
//
// Moderately fast, high quality
if ('function' === typeof require) {
if ('undefined' === typeof window && 'function' === typeof require) {
try {
var _rb = require('crypto').randomBytes;
_nodeRNG = _rng = _rb && function() {return _rb(16);};
Expand Down

0 comments on commit f10e13d

Please sign in to comment.