0

I am looking for an implementation of crypto.getRandomValues to use it in the Internet Explorer 9 and Firefox. From my basic knowledge of JS/HTML this are not available in those browser.

any idea?

Agus
  • 1,604
  • 2
  • 23
  • 48

1 Answers1

0

The best example I can find is alert(window.crypto.getRandomValues(new Uint8Array(2))[1]). This will work great for firefox and chrome- but not IE. You'll have to use a third party library such as Clipperz and check to see its compatibility if you want randomness on all three.

SyntaxRules
  • 2,056
  • 23
  • 32