Comparing version 1.3.0 to 1.3.1
@@ -23,2 +23,4 @@ "use strict"; | ||
} | ||
for (var i = 0; i < 31; i++) | ||
getUInt32(); | ||
} | ||
@@ -25,0 +27,0 @@ |
@@ -1,1 +0,1 @@ | ||
"use strict";var randy=function(){function e(e){function f(e,t){return t^t>>>e}function l(e,t){return t^t<<-e}function c(e){for(var t=0;t<i.length;t++)i[t]=~(Math.random()*4294967296);var n=0;for(var t=0;t<e.length;t++)i[n]=i[n]+Math.floor(e[t])&4294967295,n=n+1&31}function h(){return o=i[s+31&31],u=i[s]^f(8,i[s+t&31]),a=l(-19,i[s+n&31])^l(-14,i[s+r&31]),i[s]=u^a,i[s+31&31]=l(-11,o)^l(-7,u)^l(-13,a),s=s+31&31,i[s]+2147483648}var t=3,n=24,r=10,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0,o,u,a;return c(e),h}function o(e){function t(e){return e>4294967295?n(e):r(e)}function n(t){var n=e()+(e()>>>11)*4294967296;return typeof t=="undefined"?n:n%t}function r(t){var n=e();return typeof t=="undefined"?n:n%t}function i(e){if(typeof e=="undefined")return n();if(e==0)return 0;var t=0,r=1;while(r<e)t+=1,r*=2;for(var i=e;i>=e;i=s(t));return i}function s(e){function t(){var t=r();return t>>>32-e}function n(){var t=r()>>>53-e,n=r();return n+(t>>>11)*4294967296}return e===0?0:e>32?n():t()}function o(e,t){function n(t,n,r){if(typeof t=="undefined")return e();typeof n=="undefined"&&(n=t,t=0);if(typeof r=="undefined")return t+e(n-t);var i=Math.ceil((n-t)/r);return t+e(i)*r}function r(t){if(!t.length)throw"arr not an array of length > 0";return t[e(t.length)]}function i(e){var t=e.slice();return o(t),t}function o(t){var n,r;for(var i=t.length-1;i>0;i--)n=e(i+1),r=t[i],t[i]=t[n],t[n]=r}function u(t,n){var r=t.slice(),i,s,o=r.length;for(var u=o-1;u>o-n-1;u--)i=e(u+1),s=r[u],r[u]=r[i],r[i]=s;return r.slice(o-n)}function a(){return e()/t}function f(e,t){return typeof e=="undefined"&&(e=0),typeof t=="undefined"&&(t=e,e=0),e+a()*(t-e)}function l(e,t,n){typeof e=="undefined"&&(e=0),typeof t=="undefined"&&(t=e,e=0),typeof n=="undefined"&&(n=e+(t-e)/2);var r=a();return r<(n-e)/(t-e)?e+Math.sqrt(r*(t-e)*(n-e)):t-Math.sqrt((1-r)*(t-e)*(t-n))}return{randInt:n,choice:r,shuffle:i,shuffleInplace:o,sample:u,random:a,uniform:f,triangular:l,getRandBits:s}}var u=o(t,4294967296),a=o(n,9007199254740992),f=o(i,9007199254740992);return u.good=a,u.best=f,u}if(typeof module=="undefined"){var i=[(new Date).getTime()%4294967296,window.history.length,window.outerHeight,window.outerWidth,window.screenX,window.screenY,window.screen.availWidth,window.screen.availHeight,window.screen.height,window.screen.width],s=e(i);return o(s)}var t=require("os"),n=process.memoryUsage(),r=t.loadavg(),i=[(new Date).getTime(),process.pid,Math.floor(process.uptime()*16777216),n.rss,n.heapTotal,n.heapUsed,Math.floor(t.uptime()*16777216),Math.floor(r[0]*4294967296),Math.floor(r[1]*4294967296),Math.floor(r[2]*4294967296),t.totalmem(),t.freemem()],s=e(i);module.exports=o(s)}(); | ||
"use strict";var randy=function(){function e(e){function f(e,t){return t^t>>>e}function l(e,t){return t^t<<-e}function c(e){for(var t=0;t<i.length;t++)i[t]=~(Math.random()*4294967296);var n=0;for(var t=0;t<e.length;t++)i[n]=i[n]+Math.floor(e[t])&4294967295,n=n+1&31;for(var t=0;t<31;t++)h()}function h(){return o=i[s+31&31],u=i[s]^f(8,i[s+t&31]),a=l(-19,i[s+n&31])^l(-14,i[s+r&31]),i[s]=u^a,i[s+31&31]=l(-11,o)^l(-7,u)^l(-13,a),s=s+31&31,i[s]+2147483648}var t=3,n=24,r=10,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0,o,u,a;return c(e),h}function o(e){function t(e){return e>4294967295?n(e):r(e)}function n(t){var n=e()+(e()>>>11)*4294967296;return typeof t=="undefined"?n:n%t}function r(t){var n=e();return typeof t=="undefined"?n:n%t}function i(e){if(typeof e=="undefined")return n();if(e==0)return 0;var t=0,r=1;while(r<e)t+=1,r*=2;for(var i=e;i>=e;i=s(t));return i}function s(e){function t(){var t=r();return t>>>32-e}function n(){var t=r()>>>53-e,n=r();return n+(t>>>11)*4294967296}return e===0?0:e>32?n():t()}function o(e,t){function n(t,n,r){if(typeof t=="undefined")return e();typeof n=="undefined"&&(n=t,t=0);if(typeof r=="undefined")return t+e(n-t);var i=Math.ceil((n-t)/r);return t+e(i)*r}function r(t){if(!t.length)throw"arr not an array of length > 0";return t[e(t.length)]}function i(e){var t=e.slice();return o(t),t}function o(t){var n,r;for(var i=t.length-1;i>0;i--)n=e(i+1),r=t[i],t[i]=t[n],t[n]=r}function u(t,n){var r=t.slice(),i,s,o=r.length;for(var u=o-1;u>o-n-1;u--)i=e(u+1),s=r[u],r[u]=r[i],r[i]=s;return r.slice(o-n)}function a(){return e()/t}function f(e,t){return typeof e=="undefined"&&(e=0),typeof t=="undefined"&&(t=e,e=0),e+a()*(t-e)}function l(e,t,n){typeof e=="undefined"&&(e=0),typeof t=="undefined"&&(t=e,e=0),typeof n=="undefined"&&(n=e+(t-e)/2);var r=a();return r<(n-e)/(t-e)?e+Math.sqrt(r*(t-e)*(n-e)):t-Math.sqrt((1-r)*(t-e)*(t-n))}return{randInt:n,choice:r,shuffle:i,shuffleInplace:o,sample:u,random:a,uniform:f,triangular:l,getRandBits:s}}var u=o(t,4294967296),a=o(n,9007199254740992),f=o(i,9007199254740992);return u.good=a,u.best=f,u}if(typeof module=="undefined"){var i=[(new Date).getTime()%4294967296,window.history.length,window.outerHeight,window.outerWidth,window.screenX,window.screenY,window.screen.availWidth,window.screen.availHeight,window.screen.height,window.screen.width],s=e(i);return o(s)}var t=require("os"),n=process.memoryUsage(),r=t.loadavg(),i=[(new Date).getTime(),process.pid,Math.floor(process.uptime()*16777216),n.rss,n.heapTotal,n.heapUsed,Math.floor(t.uptime()*16777216),Math.floor(r[0]*4294967296),Math.floor(r[1]*4294967296),Math.floor(r[2]*4294967296),t.totalmem(),t.freemem()],s=e(i);module.exports=o(s)}(); |
{ | ||
"name": "randy", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Random utilities based on WELL-1024a PRNG.", | ||
@@ -5,0 +5,0 @@ "author": { |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
61829
1243
1