Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elliptic

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elliptic - npm Package Compare versions

Comparing version 0.15.8 to 0.15.9

6

lib/elliptic/rand.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc