if(window.crypto && window.crypto.getRandomValues){// Extract entropy (2048 bits) from RNG if availablevar z =newUint32Array(256);
window.crypto.getRandomValues(z);for(t =0; t < z.length;++t){
rng_pool[rng_pptr++]= z[t]&255;}}
注释上面代码改为下方代码
vargetRandomValues=function(array){for(var i =0, l = array.length; i < l; i++){
array[i]= Math.floor(Math.random()*256);}return array;}var z =newUint32Array(256);getRandomValues(z);