Skip to content

Commit 6a9447d

Browse files
committed
whistle.im compat
1 parent ca0664c commit 6a9447d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bcrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@
758758
// Browser, see: http://www.w3.org/TR/WebCryptoAPI/
759759
} else {
760760
var array = new Uint32Array(len);
761-
global.window.crypto.getRandomValues(array);
761+
global.crypto.getRandomValues(array); // Maybe use a polyfill
762762
return Array.prototype.slice.call(array);
763763
}
764764
}

bcrypt.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bcrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
// Browser, see: http://www.w3.org/TR/WebCryptoAPI/
637637
} else {
638638
var array = new Uint32Array(len);
639-
global.window.crypto.getRandomValues(array);
639+
global.crypto.getRandomValues(array); // Maybe use a polyfill
640640
return Array.prototype.slice.call(array);
641641
}
642642
}

0 commit comments

Comments
 (0)