@toruslabs/eccrypto
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -98,2 +98,5 @@ /******/ (() => { // webpackBootstrap | ||
function randomBytes(size) { | ||
if (typeof browserCrypto.getRandomValues === "undefined") { | ||
return Buffer.from(browserCrypto.randomBytes(size)); | ||
} | ||
const arr = new Uint8Array(size); | ||
@@ -100,0 +103,0 @@ browserCrypto.getRandomValues(arr); |
@@ -43,2 +43,5 @@ import { ec as ec$1 } from 'elliptic'; | ||
function randomBytes(size) { | ||
if (typeof browserCrypto.getRandomValues === "undefined") { | ||
return Buffer.from(browserCrypto.randomBytes(size)); | ||
} | ||
const arr = new Uint8Array(size); | ||
@@ -45,0 +48,0 @@ browserCrypto.getRandomValues(arr); |
@@ -45,2 +45,5 @@ 'use strict'; | ||
function randomBytes(size) { | ||
if (typeof browserCrypto.getRandomValues === "undefined") { | ||
return Buffer.from(browserCrypto.randomBytes(size)); | ||
} | ||
const arr = new Uint8Array(size); | ||
@@ -47,0 +50,0 @@ browserCrypto.getRandomValues(arr); |
@@ -43,2 +43,5 @@ import { ec as ec$1 } from 'elliptic'; | ||
function randomBytes(size) { | ||
if (typeof browserCrypto.getRandomValues === "undefined") { | ||
return Buffer.from(browserCrypto.randomBytes(size)); | ||
} | ||
const arr = new Uint8Array(size); | ||
@@ -45,0 +48,0 @@ browserCrypto.getRandomValues(arr); |
{ | ||
"name": "@toruslabs/eccrypto", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "JavaScript Elliptic curve cryptography library, includes fix to browser.js so that encrypt/decrypt works", | ||
@@ -5,0 +5,0 @@ "main": "./dist/lib.cjs/index.js", |
Sorry, the diff of this file is too big to display
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
217242
1071