Skip to content

Commit

Permalink
Ran build and updated package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 5, 2016
1 parent 19126d2 commit 2b83f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bin/jsencrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,15 +1276,15 @@ if(rng_pool == null) {
window.crypto.getRandomValues(z);
for (t = 0; t < z.length; ++t)
rng_pool[rng_pptr++] = z[t] & 255;
}
}

// Use mouse events for entropy, if we do not have enough entropy by the time
// we need it, entropy will be generated by Math.random.
var onMouseMoveListener = function(ev) {
this.count = this.count || 0;
if (this.count >= 256 || rng_pptr >= rng_psize) {
if (window.removeEventListener)
window.removeEventListener("mousemove", onMouseMoveListener);
window.removeEventListener("mousemove", onMouseMoveListener, false);
else if (window.detachEvent)
window.detachEvent("onmousemove", onMouseMoveListener);
return;
Expand All @@ -1294,10 +1294,10 @@ if(rng_pool == null) {
rng_pool[rng_pptr++] = mouseCoordinates & 255;
};
if (window.addEventListener)
window.addEventListener("mousemove", onMouseMoveListener);
window.addEventListener("mousemove", onMouseMoveListener, false);
else if (window.attachEvent)
window.attachEvent("onmousemove", onMouseMoveListener);

}

function rng_get_byte() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsencrypt",
"version": "2.1.0",
"version": "2.2.0",
"description": "A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.",
"main": "bin/jsencrypt.js",
"author": {
Expand Down

0 comments on commit 2b83f70

Please sign in to comment.