When LockerService is enabled and I run the example code from Mozilla:
var array = new Uint32Array(10);
window.crypto.getRandomValues(array);
I get this error:
Uncaught TypeError: Failed to execute 'getRandomValues' on 'Crypto': parameter 1 is not of type 'ArrayBufferView'.
It seems like unfilterEverything
doesn't unfilter the ArrayBufferView
objects.
Anything I can do to make it work? Right now, I simply use another method to generate random values.