From 0278f2f17798c0ee616550c6c8531a5b3bbc2f46 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Jul 2012 15:08:25 -0500 Subject: [PATCH] sjcl.random.addEntropy(): Fixed bug: Now accepts Uint32Array for data --- core/random.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/core/random.js b/core/random.js index 1c5d704c..6def0d3e 100644 --- a/core/random.js +++ b/core/random.js @@ -100,13 +100,22 @@ sjcl.random = { break; case "object": - if (Object.prototype.toString.call(data) !== "[object Array]") { - err = 1; - } - for (i=0; i