Comparing version 3.1.2-3 to 3.1.2-4
23
core.js
@@ -291,4 +291,23 @@ ;(function (root, factory) { | ||
var words = []; | ||
for (var i = 0; i < nBytes; i += 4) { | ||
words.push((Math.random() * 0x100000000) | 0); | ||
var r = (function (m_w) { | ||
var m_w = m_w; | ||
var m_z = 0x3ade68b1; | ||
var mask = 0xffffffff; | ||
return function () { | ||
m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask; | ||
m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask; | ||
var result = ((m_z << 0x10) + m_w) & mask; | ||
result /= 0x100000000; | ||
result += 0.5; | ||
return result * (Math.random() > .5 ? 1 : -1); | ||
} | ||
}); | ||
for (var i = 0, rcache; i < nBytes; i += 4) { | ||
var _r = r((rcache || Math.random()) * 0x100000000); | ||
rcache = _r() * 0x3ade67b7; | ||
words.push((_r() * 0x100000000) | 0); | ||
} | ||
@@ -295,0 +314,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Modularized port of googlecode project crypto-js.", | ||
"version": "3.1.2-3", | ||
"version": "3.1.2-4", | ||
"homepage": "http://github.com/evanvosberg/crypto-js", | ||
@@ -8,0 +8,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
212918
5902
0