[Pkg-javascript-commits] [sockjs-client] 89/350: Fix #199 Use untyped array if window.crypto is not supported
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 5d06c5b7b34c51b167a0506552786fad9f9cb79e
Author: Bryce Kahle <bkahle at gmail.com>
Date: Sat Sep 27 20:20:51 2014 -0400
Fix #199 Use untyped array if window.crypto is not supported
---
lib/utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/utils.js b/lib/utils.js
index a395590..197a4e1 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -19,7 +19,7 @@ if (window && window.crypto && window.crypto.getRandomValues) {
};
} else {
getRandomBytes = function (length) {
- var bytes = new Uint8Array(length);
+ var bytes = new Array(length);
for (var i=0; i < length; i++) bytes[i] = Math.floor(Math.random() * 256);
return bytes;
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list