var forge=require("./forge");require("./aes"),require("./sha256"),require("./prng"),require("./util"),function(){if(forge.random&&forge.random.getBytes){module.exports=forge.random;return}!function(e){var t={},r=[,,,,],n=forge.util.createBuffer();function o(){var e=forge.prng.create(t);return e.getBytes=function(t,r){return e.generate(t,r)},e.getBytesSync=function(t){return e.generate(t)},e}t.formatKey=function(e){var t=forge.util.createBuffer(e);return(e=[,,,,])[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),forge.aes._expandKey(e,!1)},t.formatSeed=function(e){var t=forge.util.createBuffer(e);return(e=[,,,,])[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),e},t.cipher=function(e,t){return forge.aes._updateBlock(e,t,r,!1),n.putInt32(r[0]),n.putInt32(r[1]),n.putInt32(r[2]),n.putInt32(r[3]),n.getBytes()},t.increment=function(e){return++e[3],e},t.md=forge.md.sha256;var u=o(),a=null,f=forge.util.globalScope,g=f.crypto||f.msCrypto;if(g&&g.getRandomValues&&(a=function(e){return g.getRandomValues(e)}),forge.options.usePureJavaScript||!forge.util.isNodejs&&!a){if("u"<typeof window||window.document,u.collectInt(+new Date,32),"u">typeof navigator){var i="";for(var c in navigator)try{"string"==typeof navigator[c]&&(i+=navigator[c])}catch(e){}u.collect(i),i=null}e&&(e().mousemove(function(e){u.collectInt(e.clientX,16),u.collectInt(e.clientY,16)}),e().keypress(function(e){u.collectInt(e.charCode,8)}))}if(forge.random)for(var c in u)forge.random[c]=u[c];else forge.random=u;forge.random.createInstance=o,module.exports=forge.random}("u">typeof jQuery?jQuery:null)}();