File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 794794 }
795795 }
796796
797+ // crypto.getRandomValues polyfill to use
797798 var _getRandomValues = null ;
798-
799+
799800 /**
800801 * Sets the polyfill that should be used if window.crypto.getRandomValues is not available.
801802 * @param {function(Uint32Array) } getRandomValues The actual implementation
803+ * @expose
802804 */
803805 bcrypt . setRandomPolyfill = function ( getRandomValues ) {
804806 _getRandomValues = getRandomValues ;
Original file line number Diff line number Diff line change 2525 */
2626var bcrypt = { } ;
2727
28+ /**
29+ * @param {Uint32Array } array
30+ */
31+ bcrypt . setRandomPolyfill = function ( array ) { } ;
32+
2833/**
2934 * @param {number= } rounds
3035 * @param {number= } seed_length
Original file line number Diff line number Diff line change 672672 }
673673 }
674674
675+ // crypto.getRandomValues polyfill to use
675676 var _getRandomValues = null ;
676-
677+
677678 /**
678679 * Sets the polyfill that should be used if window.crypto.getRandomValues is not available.
679680 * @param {function(Uint32Array) } getRandomValues The actual implementation
681+ * @expose
680682 */
681683 bcrypt . setRandomPolyfill = function ( getRandomValues ) {
682684 _getRandomValues = getRandomValues ;
You can’t perform that action at this time.
0 commit comments