fixed getRandomValues for IE10

In IE10 var crypto is undefined after line 251: var crypto = window.crypto || window.msCrypto;
So line 252 will crash with "cannot read getRandomValues of undefined"