sjcl icon indicating copy to clipboard operation
sjcl copied to clipboard

Uncaught BUG when calling sjcl.random.startCollectors()

Open lencinhaus opened this issue 11 years ago • 3 comments

Full details:

Uncaught BUG: random: addEntropy only supports number, array of numbers or string sjcl.js:2337
sjcl.prng.addEntropy sjcl.js:2337
sjcl.prng._accelerometerCollector sjcl.js:2562
(anonymous function) sjcl.js:2459

Since I've compiled my own library, the line numbers are quite meaningless, so I'll map them to the actual code:

I'm getting this in Chrome 31.0.1650.57 on Ubuntu 13.10

lencinhaus avatar Nov 30 '13 03:11 lencinhaus

That is kind of awkward but I might have an idea what is causing it.

Nilos avatar Nov 30 '13 09:11 Nilos

ok, I am pretty sure now. The problem lies in L416. If the orientation is not available it will be a string and the addEntropy function will spit an error because it only accepts arrays of numbers.

Nilos avatar Nov 30 '13 09:11 Nilos

:+1:

jivinivan avatar Mar 31 '15 18:03 jivinivan