Comparing version 1.3.1 to 1.3.2
@@ -46,7 +46,4 @@ var MULTIPLIER = 0x000343fd; | ||
var v3 = computeValueFromNextSeed(s3); | ||
var vext = (v2 + ((v1 % 4) << 15)) << 15; | ||
if (vext < 0) { | ||
return [v3 + vext + 0xffffffff + 1, new LinearCongruential32(s3)]; | ||
} | ||
return [v3 + vext, new LinearCongruential32(s3)]; | ||
var vnext = v3 + ((v2 + (v1 << 15)) << 15); | ||
return [((vnext + 0x80000000) | 0) + 0x80000000, new LinearCongruential32(s3)]; | ||
}; | ||
@@ -53,0 +50,0 @@ LinearCongruential32.min = 0; |
@@ -48,7 +48,4 @@ "use strict"; | ||
var v3 = computeValueFromNextSeed(s3); | ||
var vext = (v2 + ((v1 % 4) << 15)) << 15; | ||
if (vext < 0) { | ||
return [v3 + vext + 0xffffffff + 1, new LinearCongruential32(s3)]; | ||
} | ||
return [v3 + vext, new LinearCongruential32(s3)]; | ||
var vnext = v3 + ((v2 + (v1 << 15)) << 15); | ||
return [((vnext + 0x80000000) | 0) + 0x80000000, new LinearCongruential32(s3)]; | ||
}; | ||
@@ -55,0 +52,0 @@ LinearCongruential32.min = 0; |
{ | ||
"name": "pure-rand", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": " Pure random number generator written in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/pure-rand.js", |
Sorry, the diff of this file is too big to display
120842
3700