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

Commit

Permalink
Don't try to load the node package in a browser
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedb committed Nov 13, 2015
1 parent 0b1eeda commit e3cc114
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 e3cc114

Please sign in to comment.