Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 743 Bytes
Tests which types are valid for crypto.randomValues.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS 'crypto' in window is true
PASS 'getRandomValues' in window.crypto is true
PASS crypto.getRandomValues(new Uint8Array(3)) is undefined.
PASS crypto.getRandomValues(new Int8Array(3)) is undefined.
PASS crypto.getRandomValues(new Uint16Array(3)) is undefined.
PASS crypto.getRandomValues(new Int16Array(3)) is undefined.
PASS crypto.getRandomValues(new Uint32Array(3)) is undefined.
PASS crypto.getRandomValues(new Int32Array(3)) is undefined.
PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
PASS successfullyParsed is true
TEST COMPLETE
Jump to Line
Something went wrong with that request. Please try again.