Skip to content

Commit

Permalink
7.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed May 21, 2017
1 parent ed41f1d commit 89f70bd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ext/rng-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions ext/rng.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ if (rng_pool == null) {
rng_pool = new Array();
rng_pptr = 0;
var t;
if (typeof window !== "undefined") {
if (window !== undefined &&
(window.crypto !== undefined ||
window.msCrypto !== undefined)) {
var crypto = window.crypto || window.msCrypto;
if (crypto.getRandomValues) {
// Use webcrypto if available
var ua = new Uint8Array(32);
crypto.getRandomValues(ua);
for(t = 0; t < 32; ++t)
rng_pool[rng_pptr++] = ua[t];
} else if(navigator.appName == "Netscape" && navigator.appVersion < "5") {
} else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
// Extract entropy (256 bits) from NS4 RNG if available
var z = window.crypto.random(32);
for(t = 0; t < z.length; ++t)
Expand Down
2 changes: 1 addition & 1 deletion jsrsasign-all-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsrsasign-jwths-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsrsasign-rsa-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 89f70bd

Please sign in to comment.