Comparing version 0.15.8 to 0.15.9
@@ -21,7 +21,9 @@ var assert = require('assert'); | ||
if (typeof window === 'object') { | ||
if (window.crypto && window.crypto.getRandomValues) { | ||
var getRandomValues = window.crypto && window.crypto.getRandomValues || | ||
window.msCrypto && window.msCrypto.getRandomValues; | ||
if (getRandomValues) { | ||
// Modern browsers | ||
Rand.prototype._rand = function _rand(n) { | ||
var arr = new Uint8Array(n); | ||
window.crypto.getRandomValues(arr); | ||
getRandomValues(arr); | ||
return arr; | ||
@@ -28,0 +30,0 @@ }; |
{ | ||
"name": "elliptic", | ||
"version": "0.15.8", | ||
"version": "0.15.9", | ||
"description": "EC cryptography", | ||
@@ -5,0 +5,0 @@ "main": "lib/elliptic.js", |
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
135099
3595